| 924 | // *********************************************************************** |
| 925 | |
| 926 | void BindSerialization(lua_State* L) { |
| 927 | // register global functions |
| 928 | const luaL_Reg globalFuncs[] = { |
| 929 | { "serialize", Serialize }, |
| 930 | { "deserialize", Deserialize }, |
| 931 | { NULL, NULL } |
| 932 | }; |
| 933 | |
| 934 | lua_pushvalue(L, LUA_GLOBALSINDEX); |
| 935 | luaL_register(L, NULL, globalFuncs); |
| 936 | lua_pop(L, 1); |
| 937 | } |
no outgoing calls
no test coverage detected