| 1255 | }; |
| 1256 | |
| 1257 | static void OpenRandom(lua_State *state) |
| 1258 | { |
| 1259 | luaL_getsubtable(state, lua_gettop(state), "random"); |
| 1260 | |
| 1261 | lua_dup(state); |
| 1262 | lua_rawsetp(state, LUA_REGISTRYINDEX, &DFHACK_RANDOM_TOKEN); |
| 1263 | |
| 1264 | luaL_setfuncs(state, dfhack_random_funcs, 0); |
| 1265 | |
| 1266 | lua_pop(state, 1); |
| 1267 | } |
| 1268 | |
| 1269 | |
| 1270 | /********************************* |
no test coverage detected