Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
lapi.h File Reference
#include "llimits.h"
#include "lstate.h"

Go to the source code of this file.

Macros

#define api_incr_top(L)
 
#define adjustresults(L, nres)    { if ((nres) <= LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; }
 
#define api_checknelems(L, n)
 
#define hastocloseCfunc(n)   ((n) < LUA_MULTRET)
 
#define codeNresults(n)   (-(n) - 3)
 
#define decodeNresults(n)   (-(n) - 3)
 

Macro Definition Documentation

◆ adjustresults

#define adjustresults ( L,
nres )    { if ((nres) <= LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; }

Definition at line 25 of file lua-5.4.3/src/lapi.h.

25#define adjustresults(L,nres) \
26 { if ((nres) <= LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; }

◆ api_checknelems

#define api_checknelems ( L,
n )
Value:
api_check(L, (n) < (L->top - L->ci->func), \
"not enough elements in the stack")
#define api_check

Definition at line 30 of file lua-5.4.3/src/lapi.h.

30#define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
31 "not enough elements in the stack")

◆ api_incr_top

#define api_incr_top ( L)
Value:
{L->top++; api_check(L, L->top <= L->ci->top, \
"stack overflow");}

Definition at line 16 of file lua-5.4.3/src/lapi.h.

16#define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \
17 "stack overflow");}

◆ codeNresults

#define codeNresults ( n)    (-(n) - 3)

Definition at line 46 of file lua-5.4.3/src/lapi.h.

Referenced by lua_toclose().

◆ decodeNresults

#define decodeNresults ( n)    (-(n) - 3)

Definition at line 47 of file lua-5.4.3/src/lapi.h.

Referenced by moveresults().

◆ hastocloseCfunc

#define hastocloseCfunc ( n)    ((n) < LUA_MULTRET)