lua/lapi.h

Go to the documentation of this file.
00001 /*
00002 ** $Id: lapi.h,v 2.7 2009/11/27 15:37:59 roberto Exp $
00003 ** Auxiliary functions from Lua API
00004 ** See Copyright Notice in lua.h
00005 */
00006 
00007 #ifndef lapi_h
00008 #define lapi_h
00009 
00010 
00011 #include "llimits.h"
00012 #include "lstate.h"
00013 
00014 #define api_incr_top(L)   {L->top++; api_check(L, L->top <= L->ci->top, \
00015                 "stack overflow");}
00016 
00017 #define adjustresults(L,nres) \
00018     { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; }
00019 
00020 #define api_checknelems(L,n)    api_check(L, (n) < (L->top - L->ci->func), \
00021                   "not enough elements in the stack")
00022 
00023 
00024 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:03 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs