diff options
| -rw-r--r-- | core/src/xmake/package/loadxmi.c | 2 | ||||
| -rw-r--r-- | tests/projects/other/native_module/modules/shared/zoo/src/zoo.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/core/src/xmake/package/loadxmi.c b/core/src/xmake/package/loadxmi.c index fcbecf72b..d45fda3bb 100644 --- a/core/src/xmake/package/loadxmi.c +++ b/core/src/xmake/package/loadxmi.c @@ -59,7 +59,7 @@ tb_int_t xm_package_loadxmi(lua_State* lua) } // get xmiopen_xxx function - xm_open_func_t func = (xm_open_func_t)tb_dynamic_func(path, name); + xm_open_func_t func = (xm_open_func_t)tb_dynamic_func(lib, name); if (!func) { lua_pushnil(lua); 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 29e4a0e73..472d5f12d 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,4 +1,3 @@ -#include <stdio.h> #include <xmi.h> static int add(lua_State* lua) { @@ -20,7 +19,6 @@ static int sub(lua_State* lua) { } int xmiopen_zoo(lua_State* lua) { - printf("xxx\n"); static const luaL_Reg funcs[] = { {"add", add}, {"sub", sub}, |
