Commit 6b37458d authored by nanahira's avatar nanahira

allow coroutine lua lib

parent 39de7818
...@@ -36,6 +36,8 @@ interpreter::interpreter(duel* pd): coroutines(256) { ...@@ -36,6 +36,8 @@ interpreter::interpreter(duel* pd): coroutines(256) {
lua_pop(lua_state, 1); lua_pop(lua_state, 1);
luaL_requiref(lua_state, "math", luaopen_math, 1); luaL_requiref(lua_state, "math", luaopen_math, 1);
lua_pop(lua_state, 1); lua_pop(lua_state, 1);
luaL_requiref(lua_state, "coroutine", luaopen_math, 1);
lua_pop(lua_state, 1);
#endif #endif
//add bit lib back //add bit lib back
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment