diff options
author | bloodstalker <thabogre@gmail.com> | 2018-09-24 17:00:29 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-09-24 17:00:29 +0000 |
commit | 5d576cd5166087bfc3ab2c02565ae9025211aebe (patch) | |
tree | 33751470cfc77031bf74b0e23880a049d4729db4 /luatablegen.py | |
parent | fix (diff) | |
download | luatablegen-5d576cd5166087bfc3ab2c02565ae9025211aebe.tar.gz luatablegen-5d576cd5166087bfc3ab2c02565ae9025211aebe.zip |
fix
Diffstat (limited to '')
-rwxr-xr-x | luatablegen.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/luatablegen.py b/luatablegen.py index 3a9cf2b..5ba6b88 100755 --- a/luatablegen.py +++ b/luatablegen.py @@ -465,17 +465,12 @@ class TbgParser(object): c_source.write("\n") def check(self, c_source, struct_name): - #print(struct_name) node = get_def_node(struct_name, self.elems) - #print(node.attrib["name"]) has_conditional = False for elem in node: - if node.attrib["name"] == "W_Import_Section_Entry": print(elem.tag) if "conditional" in elem.attrib: has_conditional = True - print("fuck yeah") if has_conditional == True: - print("here") c_source.write('static XXX* check_XXX(lua_State* __ls, int index) {\n'.replace("XXX", struct_name)) c_source.write('\tXXX* dummy;\n'.replace("XXX", struct_name)) c_source.write('dummy = lua_touserdata(__ls, index);\n'.replace("XXX", struct_name)) |