diff --git a/lang/compile.py b/lang/compile.py index 4e0b50e..d0a0053 100755 --- a/lang/compile.py +++ b/lang/compile.py @@ -1009,6 +1009,7 @@ static ModuleClass CLASSNAME_module_class = { .fields_count = 0, + .bytecodes = CLASSNAME_bytecodes, }; static struct object_class CLASSNAME_class = { diff --git a/lang/module.h b/lang/module.h index a939f9c..0d36046 100644 --- a/lang/module.h +++ b/lang/module.h @@ -23,6 +23,7 @@ // A class in a module struct module_class { int fields_count; + const unsigned char **bytecodes; }; typedef struct module_class ModuleClass;