diff options
author | bloodstalker <thabogre@gmail.com> | 2018-12-31 21:27:58 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-12-31 21:27:58 +0000 |
commit | 829a7e904afcc5095d8b7565be6c335f928bfa6f (patch) | |
tree | 868587280a98c36054adf9713142483d19394517 | |
parent | update (diff) | |
download | luatablegen-829a7e904afcc5095d8b7565be6c335f928bfa6f.tar.gz luatablegen-829a7e904afcc5095d8b7565be6c335f928bfa6f.zip |
update
-rwxr-xr-x | luatablegen.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/luatablegen.py b/luatablegen.py index 2f4665b..fb049d3 100755 --- a/luatablegen.py +++ b/luatablegen.py @@ -770,8 +770,11 @@ class TbgParser(object): elif lua_eq_type == None: type_node = get_def_node_tag(kind.attrib["type"][6:], self.elems) #print(kind.attrib["type"]) - push = type_node.attrib["name"]+"_push_args(__ls, dummy->"+child.attrib["name"]+");\n" - push += "new_" + type_node.attrib["name"] + "(__ls);\n" + #push = type_node.attrib["name"]+"_push_args(__ls, dummy->"+child.attrib["name"]+");\n" + #push += "new_" + type_node.attrib["name"] + "(__ls);\n" + push = "lua_pushlightuserdata(__ls, dummy->"+child.attrib["name"]+");\n" + push += 'luaL_getmetatable(__ls, "'+type_node.attrib["name"]+'");\n' + push += "lua_setmetatable(__ls, -2);\n" else: print("this was not supposed to happen...") dummy += "if (dummy->" + cond_node.attrib["name"] + " ==" + kind.text+ ") {"+push+"}\n" else: |