about summary refs log tree commit diff stats
path: root/src/ldo.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-10-24 09:52:07 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-10-24 09:52:07 -0700
commit4a28aace9a3dfcb622cb0eac5e85d61d57ba7915 (patch)
tree4be64a8c0d4a7479562e25ce5974c2baa82e4681 /src/ldo.c
parent67e4fb8c8e27ed636eeac27a34c26b3c00186a69 (diff)
downloadteliva-4a28aace9a3dfcb622cb0eac5e85d61d57ba7915.tar.gz
get rid of userstate hooks
Diffstat (limited to 'src/ldo.c')
-rw-r--r--src/ldo.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ldo.c b/src/ldo.c
index d1bf786..ffcb031 100644
--- a/src/ldo.c
+++ b/src/ldo.c
@@ -422,7 +422,6 @@ LUA_API int lua_resume (lua_State *L, int nargs) {
       return resume_error(L, "cannot resume non-suspended coroutine");
   if (L->nCcalls >= LUAI_MAXCCALLS)
     return resume_error(L, "C stack overflow");
-  luai_userstateresume(L, nargs);
   lua_assert(L->errfunc == 0);
   L->baseCcalls = ++L->nCcalls;
   status = luaD_rawrunprotected(L, resume, L->top - nargs);
@@ -442,7 +441,6 @@ LUA_API int lua_resume (lua_State *L, int nargs) {
 
 
 LUA_API int lua_yield (lua_State *L, int nresults) {
-  luai_userstateyield(L, nresults);
   lua_lock(L);
   if (L->nCcalls > L->baseCcalls)
     luaG_runerror(L, "attempt to yield across metamethod/C-call boundary");