diff options
| author | bloodstalker <thabogre@gmail.com> | 2019-01-20 11:16:51 +0000 | 
|---|---|---|
| committer | bloodstalker <thabogre@gmail.com> | 2019-01-20 11:16:51 +0000 | 
| commit | 018ba1edbb2a1bc16eec3e2107f292392f501b0b (patch) | |
| tree | 9ce1881bfc8ac46fa256d119f0c5fd6915dd5205 | |
| parent | update (diff) | |
| download | faultreiber-018ba1edbb2a1bc16eec3e2107f292392f501b0b.tar.gz faultreiber-018ba1edbb2a1bc16eec3e2107f292392f501b0b.zip | |
update
Diffstat (limited to '')
| -rwxr-xr-x | main.py | 2 | 
1 files changed, 2 insertions, 0 deletions
| @@ -575,6 +575,7 @@ class CodeGen(object):          void_source.write("#include <stdlib.h>\n")          void_source.write('#include "aggregate.h"\n')          if self.argparser.args.calloc: void_source.write(text.ft_calloc_def) +        if self.argparser.args.luaalloc: void_source.write(text.ft_luanewuserdata_def)          #void_source.write("void** void_train;\n")          #void_source.write("uint64_t current_void_size = 0U;\n")          #void_source.write("uint64_t current_void_count = 0U;\n") @@ -801,6 +802,7 @@ class CodeGen(object):          struct_source_c.write('#include "stdio.h"\n')          struct_source.write('#include <unistd.h>\n')          if self.argparser.args.calloc: struct_source_c.write(text.ft_calloc_def) +        elif self.argparser.args.luaalloc: struct_source_c.write(text.ft_luanewuserdata_def)          struct_source.write(text.header_inttype)          struct_source_c.write(text.c_read_leb_u_def + "\n")          struct_source_c.write(text.c_read_leb_s_def + "\n") | 
