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)
 

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 17 of file lua-5.3.6/src/lapi.h.

17#define adjustresults(L,nres) \
18 { 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 20 of file lua-5.3.6/src/lapi.h.

20#define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
21 "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 14 of file lua-5.3.6/src/lapi.h.

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