lua5.4
宏定义
lapi.h 文件参考
#include "llimits.h"
#include "lstate.h"
lapi.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

#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)
 

宏定义说明

◆ adjustresults

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

◆ api_checknelems

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

◆ api_incr_top

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

◆ codeNresults

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

◆ hastocloseCfunc

#define hastocloseCfunc (   n)    ((n) < LUA_MULTRET)
api_check
#define api_check(l, e, msg)
Definition: llimits.h:113