summaryrefslogtreecommitdiff
path: root/tests/projects
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-04 00:46:55 +0800
committerruki <[email protected]>2024-04-04 00:46:55 +0800
commitc04f30ad9010b58554554f925584ec97682a3f18 (patch)
treeb20502c5068de175fd3ca65dafdb538c424e5e9b /tests/projects
parentb0bc1ce397bb4b700c989df01d11b65b72ca800f (diff)
fix init luaops
Diffstat (limited to 'tests/projects')
-rw-r--r--tests/projects/other/native_module/modules/shared/zoo/src/zoo.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/projects/other/native_module/modules/shared/zoo/src/zoo.c b/tests/projects/other/native_module/modules/shared/zoo/src/zoo.c
index 02458467c..b297ee302 100644
--- a/tests/projects/other/native_module/modules/shared/zoo/src/zoo.c
+++ b/tests/projects/other/native_module/modules/shared/zoo/src/zoo.c
@@ -1,20 +1,16 @@
#include <xmi.h>
static int add(lua_State* lua) {
-#if 0
int a = lua_tointeger(lua, 1);
int b = lua_tointeger(lua, 2);
lua_pushinteger(lua, a + b);
-#endif
return 1;
}
static int sub(lua_State* lua) {
-#if 0
int a = lua_tointeger(lua, 1);
int b = lua_tointeger(lua, 2);
lua_pushinteger(lua, a - b);
-#endif
return 1;
}