diff options
author | Damien George <damien.p.george@gmail.com> | 2019-10-07 11:56:24 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-12-12 20:15:28 +1100 |
commit | 360d972c16dd818462be7699badb6478639924c1 (patch) | |
tree | 205c5021c69ce41b4b3b8b5101bcd9975709824c /tools/mpy-tool.py | |
parent | b47e155bd07e5765b804c404411825b15378c0b6 (diff) | |
download | micropython-360d972c16dd818462be7699badb6478639924c1.tar.gz micropython-360d972c16dd818462be7699badb6478639924c1.zip |
py/nativeglue: Add new header file with native function table typedef.
Diffstat (limited to 'tools/mpy-tool.py')
-rwxr-xr-x | tools/mpy-tool.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py index 581603249d..cd36c909f4 100755 --- a/tools/mpy-tool.py +++ b/tools/mpy-tool.py @@ -314,7 +314,7 @@ class RawCode(object): print(' MP_ROM_QSTR(%s),' % global_qstrs[qst].qstr_id) for i in range(len(self.objs)): if self.objs[i] is MPFunTable: - print(' mp_fun_table,') + print(' &mp_fun_table,') elif type(self.objs[i]) is float: print('#if MICROPY_OBJ_REPR == MICROPY_OBJ_REPR_A || MICROPY_OBJ_REPR == MICROPY_OBJ_REPR_B') print(' MP_ROM_PTR(&const_obj_%s_%u),' % (self.escaped_name, i)) @@ -711,6 +711,7 @@ def freeze_mpy(base_qstrs, raw_codes): print('#include "py/objint.h"') print('#include "py/objstr.h"') print('#include "py/emitglue.h"') + print('#include "py/nativeglue.h"') print() print('#if MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE != %u' % config.MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE) |