diff options
author | bloodstalker <thabogre@gmail.com> | 2019-01-20 10:45:07 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2019-01-20 10:45:07 +0000 |
commit | b77c473f516486428fce3ea0166c1615f7e981b8 (patch) | |
tree | f1a16ba3ec9b3afc0833213bb600b5d2ce96bbb7 /main.py | |
parent | update (diff) | |
download | faultreiber-b77c473f516486428fce3ea0166c1615f7e981b8.tar.gz faultreiber-b77c473f516486428fce3ea0166c1615f7e981b8.zip |
fix
Diffstat (limited to '')
-rwxr-xr-x | main.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -568,6 +568,8 @@ class CodeGen(object): void_source_h.write("\n// automatically generated by faultreiber\n") void_source.write("// " + self.dnt + "\n") void_source_h.write("// " + self.dnt + "\n") + if self.argparser.args.luaalloc: + void_source.write('#include "'+self.argparser.args.luaheaders+'"\n') void_source.write('#include "./structs.h"\n') void_source.write('#include "./read.h"\n') void_source.write("#include <stdlib.h>\n") @@ -579,6 +581,8 @@ class CodeGen(object): void_source_h.write('#ifndef FT_AGGREGATE_H\n#define FT_AGGREGATE_H\n') void_source_h.write('#ifdef __cplusplus\nextern "C" {\n#endif\n') void_source_h.write('#include "./structs.h"\n') + if self.argparser.args.luaalloc: + void_source_h.write('#include "'+self.argparser.args.luaheaders+'"\n') # generating the extern declarations and definitions void_source_h.write("typedef struct {\n") for elem in self.read_elems: |