MCPcopy Create free account
hub / github.com/Tencent/xLua / luaopen_xlua

Function luaopen_xlua

WebGLPlugins/xlua.c:1234–1244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1232};
1233
1234LUA_API void luaopen_xlua(lua_State *L) {
1235 luaL_openlibs(L);
1236
1237#if LUA_VERSION_NUM == 503
1238 luaL_newlib(L, xlualib);
1239 lua_setglobal(L, "xlua");
1240#else
1241 luaL_register(L, "xlua", xlualib);
1242 lua_pop(L, 1);
1243#endif
1244}
1245

Callers

nothing calls this directly

Calls 2

luaL_openlibsFunction · 0.85
lua_setglobalFunction · 0.70

Tested by

no test coverage detected