diff options
| author | bloodstalker <thabogre@gmail.com> | 2018-12-31 22:00:38 +0000 | 
|---|---|---|
| committer | bloodstalker <thabogre@gmail.com> | 2018-12-31 22:00:38 +0000 | 
| commit | d4b164fe3e64e9852012a89eea31c4e269faeebc (patch) | |
| tree | b81607de1f2612dfc79e01825e404415268ba2eb | |
| parent | update (diff) | |
| download | luatablegen-d4b164fe3e64e9852012a89eea31c4e269faeebc.tar.gz luatablegen-d4b164fe3e64e9852012a89eea31c4e269faeebc.zip | |
update
Diffstat (limited to '')
| -rwxr-xr-x | luatablegen.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/luatablegen.py b/luatablegen.py index 695aee1..9bc87c8 100755 --- a/luatablegen.py +++ b/luatablegen.py @@ -737,7 +737,7 @@ class TbgParser(object):              elif lua_type == "lightuserdata":                  if count == 1:                      dummy = "lua_pushlightuserdata(__ls, dummy->"+child.attrib["name"]+");\n" -                    dummy += 'lua_getmetatable(__ls, "'+ref_node_type.attrib["name"]+'");\n' +                    dummy += 'luaL_getmetatable(__ls, "'+ref_node_type.attrib["name"]+'");\n'                      dummy += "lua_setmetatable(__ls, -2);\n"                      #dummy = ref_node_type.attrib["name"]+ "_push_args(__ls, dummy->"+field_name+");\nnew_" + ref_node_type.attrib["name"] + "(__ls);\n"                  #FIXME @@ -812,7 +812,7 @@ class TbgParser(object):                  #dummy += "dummy->" +field_name+ "=calloc(sizeof(" +type_replacement+ ")*table_length,1);\n"                  if count == 1:                      #dummy += "free(dummy->" + field_name + ");\n" -                    dummy += "dummy->" +field_name+ "=calloc(sizeof(" +type_replacement+ "),1);\n" +                    #dummy += "dummy->" +field_name+ "=calloc(sizeof(" +type_replacement+ "),1);\n"                      dummy += "dummy->" + field_name + "= luaL_checkudata(__ls, -1,\""+type_replacement+"\");\n"                      dummy += "lua_pop(__ls, 1);\n"                  else: | 
