RetroArch
ldo.h
Go to the documentation of this file.
1 /*
2 ** $Id: ldo.h,v 2.29.1.1 2017/04/19 17:20:42 roberto Exp $
3 ** Stack and Call structure of Lua
4 ** See Copyright Notice in lua.h
5 */
6 
7 #ifndef ldo_h
8 #define ldo_h
9 
10 
11 #include "lobject.h"
12 #include "lstate.h"
13 #include "lzio.h"
14 
15 
16 /*
17 ** Macro to check stack size and grow stack if needed. Parameters
18 ** 'pre'/'pos' allow the macro to preserve a pointer into the
19 ** stack across reallocations, doing the work only when needed.
20 ** 'condmovestack' is used in heavy tests to force a stack reallocation
21 ** at every check.
22 */
23 #define luaD_checkstackaux(L,n,pre,pos) \
24  if (L->stack_last - L->top <= (n)) \
25  { pre; luaD_growstack(L, n); pos; } else { condmovestack(L,pre,pos); }
26 
27 /* In general, 'pre'/'pos' are empty (nothing to save) */
28 #define luaD_checkstack(L,n) luaD_checkstackaux(L,n,(void)0,(void)0)
29 
30 
31 
32 #define savestack(L,p) ((char *)(p) - (char *)L->stack)
33 #define restorestack(L,n) ((TValue *)((char *)L->stack + (n)))
34 
35 
36 /* type of protected functions, to be ran by 'runprotected' */
37 typedef void (*Pfunc) (lua_State *L, void *ud);
38 
39 LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
40  const char *mode);
41 LUAI_FUNC void luaD_hook (lua_State *L, int event, int line);
42 LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults);
43 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults);
44 LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults);
45 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u,
46  ptrdiff_t oldtop, ptrdiff_t ef);
47 LUAI_FUNC int luaD_poscall (lua_State *L, CallInfo *ci, StkId firstResult,
48  int nres);
49 LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize);
50 LUAI_FUNC void luaD_growstack (lua_State *L, int n);
53 
54 LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode);
56 
57 #endif
58 
LUAI_FUNC void luaD_growstack(lua_State *L, int n)
Definition: ldo.c:191
LUAI_FUNC void luaD_shrinkstack(lua_State *L)
Definition: ldo.c:221
GLuint const GLchar * name
Definition: glext.h:6671
GLenum mode
Definition: glext.h:6857
Definition: lobject.h:113
LUAI_FUNC int luaD_poscall(lua_State *L, CallInfo *ci, StkId firstResult, int nres)
Definition: ldo.c:376
GLfloat f
Definition: glext.h:8207
GLdouble GLdouble z
Definition: glext.h:6514
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
void(* Pfunc)(lua_State *L, void *ud)
Definition: ldo.h:37
LUAI_FUNC int luaD_protectedparser(lua_State *L, ZIO *z, const char *name, const char *mode)
Definition: ldo.c:783
LUAI_FUNC void luaD_hook(lua_State *L, int event, int line)
Definition: ldo.c:253
#define LUAI_FUNC
Definition: luaconf.h:282
LUAI_FUNC l_noret luaD_throw(lua_State *L, int errcode)
Definition: ldo.c:110
LUAI_FUNC int luaD_rawrunprotected(lua_State *L, Pfunc f, void *ud)
Definition: ldo.c:136
LUAI_FUNC void luaD_callnoyield(lua_State *L, StkId func, int nResults)
Definition: ldo.c:507
GLenum func
Definition: glext.h:6668
LUAI_FUNC void luaD_call(lua_State *L, StkId func, int nResults)
Definition: ldo.c:495
LUAI_FUNC int luaD_precall(lua_State *L, StkId func, int nresults)
Definition: ldo.c:413
LUAI_FUNC void luaD_reallocstack(lua_State *L, int newsize)
Definition: ldo.c:177
LUAI_FUNC int luaD_pcall(lua_State *L, Pfunc func, void *u, ptrdiff_t oldtop, ptrdiff_t ef)
Definition: ldo.c:721
Ιστορικό Εικόνα Πληροφορίες Όλοι Οι Χρήστες Χειρίζονται Το Μενού Αριστερό Αναλογικό Αριστερό Αναλογικό Αριστερό Αναλογικό Y Αριστερό Αναλογικό Δεξί Αναλογικό X Δεξί Αναλογικό Δεξί Αναλογικό Y Δεξί Αναλογικό Σκανδάλη Όπλου Όπλο Aux A Όπλο Aux C Όπλο Select Όπλο D pad Κάτω Όπλο D pad Δεξιά Νεκρή Ζώνη Αναλογικού Σύνδεση Όλων Λήξη Χρόνου Σύνδεσης Hide Unbound Core Input Descriptors Κατάλογος Συσκευών Κατάλογος Ποντικιού Duty Cycle Keyboard Gamepad Mapping Enable Κουμπί D pad κάτω Κουμπί Κουμπί L(πίσω)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_LEFT
struct _cl_event * event
Definition: glext.h:8406
Definition: lstate.h:92
LUAI_FUNC void luaD_inctop(lua_State *L)
Definition: ldo.c:240
#define l_noret
Definition: llimits.h:143
Definition: lstate.h:178
GLdouble n
Definition: glext.h:8396
Definition: lzio.h:55