From 92e616c26748d52abf415754ef1628f52d0e3a33 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Mon, 24 Sep 2018 18:31:54 +0330 Subject: fix --- luatablegen.py | 2 +- test/luwasm.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/luatablegen.py b/luatablegen.py index f39db21..ae75733 100755 --- a/luatablegen.py +++ b/luatablegen.py @@ -562,7 +562,7 @@ class TbgParser(object): if ref_type_node != None: c_source.write("push_" + ref_type_node.attrib["name"] + "(__ls, _st->" + child.attrib["name"] + ");\n") else: - c_source.write("push_lightuserdata(__ls, _st->" + child.attrib["name"] + ");\n") + c_source.write("lua_pushlightuserdata(__ls, _st->" + child.attrib["name"] + ");\n") # FIXME else: pass else: diff --git a/test/luwasm.xml b/test/luwasm.xml index 3704b28..d650f68 100644 --- a/test/luwasm.xml +++ b/test/luwasm.xml @@ -132,7 +132,7 @@ - 0 + 0 1 2 3 -- cgit v1.2.3