1
0
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:
Bogdan Marinescu 2013-06-12 12:20:47 -07:00
commit 01835325d9

View File

@ -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;
}