Macros
lapi.h File Reference
#include "llimits.h"
#include "lstate.h"
Include dependency graph for lapi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

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

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 lapi.h.

◆ api_checknelems

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

Definition at line 30 of file lapi.h.

◆ 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 lapi.h.

◆ codeNresults

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

Definition at line 46 of file lapi.h.

◆ decodeNresults

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

Definition at line 47 of file lapi.h.

◆ hastocloseCfunc

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

Definition at line 43 of file lapi.h.

api_check
#define api_check(l, e, msg)
Definition: llimits.h:113


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49