void lua_registerlocalcommands(lua_State *ps);
void lua_registerdebug(lua_State *ps);
void lua_socket_closeall(lua_list *l);
+void lua_scheduler_freeall(lua_list *l);
void lua_registersocketcommands(lua_State *ps);
void lua_registercryptocommands(lua_State *ps);
+void lua_registerschedulercommands(lua_State *ps);
#ifdef LUA_DEBUGSOCKET
lua_registerdbcommands(l);
lua_registersocketcommands(l);
lua_registercryptocommands(l);
+ lua_registerschedulercommands(l);
#ifdef LUA_USEJIT
lua_require(l, "lib/jit");
n->prev = lua_tail;
n->nicks = NULL;
n->sockets = NULL;
+ n->schedulers = NULL;
if(!lua_head) {
lua_head = n;
lua_onunload(l->l);
lua_deregisternicks(l);
lua_socket_closeall(l);
+ lua_scheduler_freeall(l);
lua_close(l->l);
freesstring(l->name);
return 1;
}
-INLINE int lua_debugpcall(lua_State *l, char *message, int a, int b, int c) {
+int lua_debugpcall(lua_State *l, char *message, int a, int b, int c) {
lua_list *l2 = lua_listfromstate(l);
int ret;