mirror of
https://github.com/elua/elua.git
synced 2025-01-25 01:02:54 +08:00
Merge pull request #21 from tcoram/master
Fixed "lua: attempt to call a string value" when loading platform libraries
This commit is contained in:
commit
01835325d9
@ -91,7 +91,7 @@ LUALIB_API int luaopen_platform (lua_State *L)
|
||||
unsigned i;
|
||||
for (i = 0; i < sizeof(platform_open_funcs) / sizeof(lua_CFunction); i++) {
|
||||
lua_pushcfunction(L, platform_open_funcs[i]);
|
||||
lua_call(L, 1, 0);
|
||||
lua_call(L, 0, 0);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user