The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ldo.h
Go to the documentation of this file.
1 /*
2 ** Stack and Call structure of Lua
3 ** See Copyright Notice in lua.h
4 */
5 
6 #ifndef ldo_h
7 #define ldo_h
8 
9 
10 #include "lobject.h"
11 #include "lstate.h"
12 #include "lzio.h"
13 
14 
15 #define luaD_checkstack(L,n) if (L->stack_last - L->top <= (n)) \
16  luaD_growstack(L, n); else condmovestack(L);
17 
18 
19 #define incr_top(L) {L->top++; luaD_checkstack(L,0);}
20 
21 #define savestack(L,p) ((char *)(p) - (char *)L->stack)
22 #define restorestack(L,n) ((TValue *)((char *)L->stack + (n)))
23 
24 
25 /* type of protected functions, to be ran by `runprotected' */
26 typedef void (*Pfunc) (lua_State *L, void *ud);
27 
28 LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
29  const char *mode);
30 LUAI_FUNC void luaD_hook (lua_State *L, int event, int line);
31 LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults);
32 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults,
33  int allowyield);
34 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u,
35  ptrdiff_t oldtop, ptrdiff_t ef);
36 LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult);
37 LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize);
38 LUAI_FUNC void luaD_growstack (lua_State *L, int n);
40 
41 LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode);
42 LUAI_FUNC int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud);
43 
44 #endif
45 
GLdouble GLdouble z
Definition: glew.h:1527
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1806
#define LUAI_FUNC
Definition: luaconf.h:187
LUAI_FUNC void luaD_shrinkstack(lua_State *L)
Definition: ldo.cpp:227
LUAI_FUNC int luaD_poscall(lua_State *L, StkId firstResult)
Definition: ldo.cpp:384
LUAI_FUNC int luaD_precall(lua_State *L, StkId func, int nresults)
Definition: ldo.cpp:318
#define l_noret
Definition: llimits.h:108
LUAI_FUNC void luaD_call(lua_State *L, StkId func, int nResults, int allowyield)
Definition: ldo.cpp:415
LUAI_FUNC int luaD_rawrunprotected(lua_State *L, Pfunc f, void *ud)
Definition: ldo.cpp:147
GLenum mode
Definition: glew.h:2390
LUAI_FUNC int luaD_protectedparser(lua_State *L, ZIO *z, const char *name, const char *mode)
Definition: ldo.cpp:684
LUAI_FUNC void luaD_reallocstack(lua_State *L, int newsize)
Definition: ldo.cpp:183
LUAI_FUNC void luaD_hook(lua_State *L, int event, int line)
Definition: ldo.cpp:239
LUAI_FUNC l_noret luaD_throw(lua_State *L, int errcode)
Definition: ldo.cpp:125
void(* Pfunc)(lua_State *L, void *ud)
Definition: ldo.h:26
Definition: lzio.h:53
GLuint const GLchar * name
Definition: glew.h:1782
GLclampd n
Definition: glew.h:5903
cl_event event
Definition: glew.h:3070
LUAI_FUNC void luaD_growstack(lua_State *L, int n)
Definition: ldo.cpp:197
LUAI_FUNC int luaD_pcall(lua_State *L, Pfunc func, void *u, ptrdiff_t oldtop, ptrdiff_t ef)
Definition: ldo.cpp:617
GLclampf f
Definition: glew.h:3024