Home
last modified time | relevance | path

Searched refs:LUA_YIELD (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/lua/src/
H A Dlcorolib.c40 if (l_likely(status == LUA_OK || status == LUA_YIELD)) { in auxresume()
78 if (stat != LUA_OK && stat != LUA_YIELD) { /* error in the coroutine? */ in luaB_auxwrap()
131 case LUA_YIELD: in auxstatus()
H A Dldo.c38 #define errorstatus(s) ((s) > LUA_YIELD)
678 status = LUA_YIELD; /* was interrupted by an yield */ in finishpcallk()
716 int status = LUA_YIELD; /* default if there were no errors */ in finishCcall()
792 lua_assert(L->status == LUA_YIELD); in resume()
801 n = (*ci->u.c.k)(L, LUA_YIELD, ci->u.c.ctx); /* call continuation */ in resume()
841 else if (L->status != LUA_YIELD) /* ended with errors? */ in lua_resume()
859 *nresults = (status == LUA_YIELD) ? L->ci->u2.nyield in lua_resume()
884 L->status = LUA_YIELD; in lua_yieldk()
894 luaD_throw(L, LUA_YIELD); in lua_yieldk()
H A Dldebug.c915 if (L->status == LUA_YIELD) { /* did hook yield? */ in luaG_traceexec()
920 luaD_throw(L, LUA_YIELD); in luaG_traceexec()
H A Dlbaselib.c462 if (l_unlikely(status != LUA_OK && status != LUA_YIELD)) { /* error? */ in finishpcall()
H A Dlstate.c328 if (status == LUA_YIELD) in luaE_resetthread()
H A Dlua.h50 #define LUA_YIELD 1 macro
H A Dltests.c1895 if (status != LUA_OK && status != LUA_YIELD) { in coresume()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlcorolib.c29 if (status == LUA_OK || status == LUA_YIELD) { in auxresume()
107 case LUA_YIELD: in luaB_costatus()
H A Dldo.c509 ci->u.c.status = LUA_YIELD; /* 'default' status */ in finishCcall()
597 else if (L->status != LUA_YIELD) in resume_cb()
607 ci->u.c.status = LUA_YIELD; /* 'default' status */ in resume_cb()
635 while (status != LUA_OK && status != LUA_YIELD) { /* error? */ in lua_resume()
666 L->status = LUA_YIELD; in lua_yieldk()
675 luaD_throw(L, LUA_YIELD); in lua_yieldk()
H A Dlvm.c80 if (L->status == LUA_YIELD) { /* did hook yield? */ in traceexec()
86 luaD_throw(L, LUA_YIELD); in traceexec()
H A Dldebug.c46 if (L->status == LUA_YIELD) { in swapextra()
/freebsd/sys/contrib/openzfs/include/sys/lua/
H A Dlua.h44 #define LUA_YIELD 1 macro