diff options
| author | ruki <[email protected]> | 2024-04-03 23:50:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-04-03 23:50:20 +0800 |
| commit | 70748de03539eec10aafb9cb78178c275d6e9b47 (patch) | |
| tree | 38d732ed34f3cef05616f270e427400b7247ebee /tests | |
| parent | d08d95ac8fc9e1f316ff180aaedd61e21c384e24 (diff) | |
improve loadxmi
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/projects/other/native_module/modules/shared/zoo/src/zoo.c | 4 |
1 files changed, 3 insertions, 1 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 a93fb0dab..29e4a0e73 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,3 +1,4 @@ +#include <stdio.h> #include <xmi.h> static int add(lua_State* lua) { @@ -18,7 +19,8 @@ static int sub(lua_State* lua) { return 1; } -int xmi_luaopen_foo(lua_State* lua) { +int xmiopen_zoo(lua_State* lua) { + printf("xxx\n"); static const luaL_Reg funcs[] = { {"add", add}, {"sub", sub}, |
