Lines Matching refs:Lc
592 lua_rotate(rctx->Lc, 1, 1); in proxy_return_rctx_cb()
593 lua_settop(rctx->Lc, 1); in proxy_return_rctx_cb()
895 lua_State *Lc = rctx->Lc; in proxy_run_rcontext() local
897 int cores = lua_resume(Lc, NULL, rctx->lua_narg, &nresults); in proxy_run_rcontext()
905 int type = lua_type(Lc, 1); in proxy_run_rcontext()
908 if (type == LUA_TUSERDATA && (r = luaL_testudata(Lc, 1, "mcp.response")) != NULL) { in proxy_run_rcontext()
932 const char *s = lua_tolstring(Lc, 1, &rlen); in proxy_run_rcontext()
936 lua_pop(Lc, 1); in proxy_run_rcontext()
944 int yield_type = lua_tointeger(Lc, -1); in proxy_run_rcontext()
947 lua_pop(Lc, 1); in proxy_run_rcontext()
989 P_DEBUG("%s: Failed to run coroutine: %s\n", __func__, lua_tostring(Lc, -1)); in proxy_run_rcontext()
990 LOGGER_LOG(NULL, LOG_PROXYEVENTS, LOGGER_PROXY_ERROR, NULL, lua_tostring(Lc, -1)); in proxy_run_rcontext()
1192 lua_rawgeti(rctx->Lc, LUA_REGISTRYINDEX, rctx->function_ref); in proxy_process_command()
1193 lua_rawgeti(rctx->Lc, LUA_REGISTRYINDEX, rctx->request_ref); in proxy_process_command()
1312 proxy_lua_error(rctx->Lc, "out of memory allocating from IO cache"); in mcp_queue_rctx_io()