From aac7096f631ba2ba5ac29bc691fac0584b20a9dd Mon Sep 17 00:00:00 2001 From: jayden <46307433+kermeow@users.noreply.github.com> Date: Wed, 12 Mar 2025 04:09:40 +0000 Subject: [PATCH] feat: enable coroutines (#695) --- src/pc/lua/smlua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pc/lua/smlua.c b/src/pc/lua/smlua.c index de29ebe7c..c7f0a0c8f 100644 --- a/src/pc/lua/smlua.c +++ b/src/pc/lua/smlua.c @@ -287,7 +287,6 @@ void smlua_init(void) { // load libraries luaopen_base(L); - //luaopen_coroutine(L); #if defined(DEVELOPMENT) luaL_requiref(L, "debug", luaopen_debug, 1); luaL_requiref(L, "io", luaopen_io, 1); @@ -297,7 +296,8 @@ void smlua_init(void) { luaL_requiref(L, "math", luaopen_math, 1); luaL_requiref(L, "string", luaopen_string, 1); luaL_requiref(L, "table", luaopen_table, 1); - //luaopen_utf8(L); + luaL_requiref(L, "coroutine", luaopen_coroutine, 1); + // luaopen_utf8(L); smlua_bind_hooks(); smlua_bind_cobject();