Skip to main content

inc_c_stack

Function inc_c_stack 

Source
pub fn inc_c_stack(state: &mut LuaState) -> Result<(), LuaError>
Expand description

Increment the C-call depth counter, checking for overflow.

C: LUAI_FUNC void luaE_incCstack(lua_State *L) — pub(crate)

// C: LUAI_FUNC void luaE_incCstack(lua_State *L) {
//   L->nCcalls++;
//   if (l_unlikely(getCcalls(L) >= LUAI_MAXCCALLS))
//     luaE_checkcstack(L);
// }