| 1232 | }; |
| 1233 | |
| 1234 | LUA_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 |
nothing calls this directly
no test coverage detected