Skip to content

Commit 2ca5181

Browse files
committed
Branch 5.2 - new releases for 5.2 go from here, main trunk goes
for next version
1 parent f5ae26e commit 2ca5181

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+21388
-0
lines changed

lapi.c

+1,284
Large diffs are not rendered by default.

lapi.h

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
** $Id: lapi.h,v 2.7 2009/11/27 15:37:59 roberto Exp $
3+
** Auxiliary functions from Lua API
4+
** See Copyright Notice in lua.h
5+
*/
6+
7+
#ifndef lapi_h
8+
#define lapi_h
9+
10+
11+
#include "llimits.h"
12+
#include "lstate.h"
13+
14+
#define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \
15+
"stack overflow");}
16+
17+
#define adjustresults(L,nres) \
18+
{ if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; }
19+
20+
#define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
21+
"not enough elements in the stack")
22+
23+
24+
#endif

0 commit comments

Comments
 (0)