MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / prepCallInfo

Function prepCallInfo

third-party/lua-5.5.0/src/ldo.c:628–636  ·  view source on GitHub ↗

** Allocate and initialize CallInfo structure. At this point, the ** only valid fields in the call status are number of results, ** CIST_C (if it's a C function), and number of extra arguments. ** (All these bit-fields fit in 16-bit values.) */

Source from the content-addressed store, hash-verified

626** (All these bit-fields fit in 16-bit values.)
627*/
628l_sinline CallInfo *prepCallInfo (lua_State *L, StkId func, unsigned status,
629 StkId top) {
630 CallInfo *ci = L->ci = next_ci(L); /* new frame */
631 ci->func.p = func;
632 lua_assert((status & ~(CIST_NRESULTS | CIST_C | MAX_CCMT)) == 0);
633 ci->callstatus = status;
634 ci->top.p = top;
635 return ci;
636}
637
638
639/*

Callers 2

precallCFunction · 0.70
luaD_precallFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected