RetroArch
Classes | Macros | Functions
ldo.c File Reference
#include "lprefix.h"
#include <setjmp.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lapi.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "lmem.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lparser.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
#include "lundump.h"
#include "lvm.h"
#include "lzio.h"
Include dependency graph for ldo.c:

Classes

struct  lua_longjmp
 
struct  SParser
 

Macros

#define ldo_c
 
#define LUA_CORE
 
#define errorstatus(s)   ((s) > LUA_YIELD)
 
#define LUAI_THROW(L, c)   longjmp((c)->b, 1)
 
#define LUAI_TRY(L, c, a)   if (setjmp((c)->b) == 0) { a }
 
#define luai_jmpbuf   jmp_buf
 
#define ERRORSTACKSIZE   (LUAI_MAXSTACK + 200)
 
#define next_ci(L)   (L->ci = (L->ci->next ? L->ci->next : luaE_extendCI(L)))
 
#define checkstackp(L, n, p)
 

Functions

static void seterrorobj (lua_State *L, int errcode, StkId oldtop)
 
l_noret luaD_throw (lua_State *L, int errcode)
 
int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud)
 
static void correctstack (lua_State *L, TValue *oldstack)
 
void luaD_reallocstack (lua_State *L, int newsize)
 
void luaD_growstack (lua_State *L, int n)
 
static int stackinuse (lua_State *L)
 
void luaD_shrinkstack (lua_State *L)
 
void luaD_inctop (lua_State *L)
 
void luaD_hook (lua_State *L, int event, int line)
 
static void callhook (lua_State *L, CallInfo *ci)
 
static StkId adjust_varargs (lua_State *L, Proto *p, int actual)
 
static void tryfuncTM (lua_State *L, StkId func)
 
static int moveresults (lua_State *L, const TValue *firstResult, StkId res, int nres, int wanted)
 
int luaD_poscall (lua_State *L, CallInfo *ci, StkId firstResult, int nres)
 
int luaD_precall (lua_State *L, StkId func, int nresults)
 
static void stackerror (lua_State *L)
 
void luaD_call (lua_State *L, StkId func, int nResults)
 
void luaD_callnoyield (lua_State *L, StkId func, int nResults)
 
static void finishCcall (lua_State *L, int status)
 
static void unroll (lua_State *L, void *ud)
 
static CallInfofindpcall (lua_State *L)
 
static int recover (lua_State *L, int status)
 
static int resume_error (lua_State *L, const char *msg, int narg)
 
static void resume (lua_State *L, void *ud)
 
LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs)
 
LUA_API int lua_isyieldable (lua_State *L)
 
LUA_API int lua_yieldk (lua_State *L, int nresults, lua_KContext ctx, lua_KFunction k)
 
int luaD_pcall (lua_State *L, Pfunc func, void *u, ptrdiff_t old_top, ptrdiff_t ef)
 
static void checkmode (lua_State *L, const char *mode, const char *x)
 
static void f_parser (lua_State *L, void *ud)
 
int luaD_protectedparser (lua_State *L, ZIO *z, const char *name, const char *mode)
 

Macro Definition Documentation

◆ checkstackp

#define checkstackp (   L,
  n,
  p 
)
Value:
ptrdiff_t t__ = savestack(L, p); /* save 'p' */ \
luaC_checkGC(L), /* stack grow uses memory */ \
p = restorestack(L, t__)) /* 'pos' part: restore 'p' */
#define restorestack(L, n)
Definition: ldo.h:33
GLfloat GLfloat p
Definition: glext.h:9809
#define luaD_checkstackaux(L, n, pre, pos)
Definition: ldo.h:23
#define savestack(L, p)
Definition: ldo.h:32
Ιστορικό Εικόνα Πληροφορίες Όλοι Οι Χρήστες Χειρίζονται Το Μενού Αριστερό Αναλογικό Αριστερό Αναλογικό Αριστερό Αναλογικό 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
GLdouble n
Definition: glext.h:8396

◆ ERRORSTACKSIZE

#define ERRORSTACKSIZE   (LUAI_MAXSTACK + 200)

◆ errorstatus

#define errorstatus (   s)    ((s) > LUA_YIELD)

◆ ldo_c

#define ldo_c

◆ LUA_CORE

#define LUA_CORE

◆ luai_jmpbuf

#define luai_jmpbuf   jmp_buf

◆ LUAI_THROW

#define LUAI_THROW (   L,
  c 
)    longjmp((c)->b, 1)

◆ LUAI_TRY

#define LUAI_TRY (   L,
  c,
  a 
)    if (setjmp((c)->b) == 0) { a }

◆ next_ci

#define next_ci (   L)    (L->ci = (L->ci->next ? L->ci->next : luaE_extendCI(L)))

Function Documentation

◆ adjust_varargs()

static StkId adjust_varargs ( lua_State L,
Proto p,
int  actual 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ callhook()

static void callhook ( lua_State L,
CallInfo ci 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkmode()

static void checkmode ( lua_State L,
const char *  mode,
const char *  x 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ correctstack()

static void correctstack ( lua_State L,
TValue oldstack 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ f_parser()

static void f_parser ( lua_State L,
void ud 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ findpcall()

static CallInfo* findpcall ( lua_State L)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ finishCcall()

static void finishCcall ( lua_State L,
int  status 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_isyieldable()

LUA_API int lua_isyieldable ( lua_State L)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_resume()

LUA_API int lua_resume ( lua_State L,
lua_State from,
int  nargs 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lua_yieldk()

LUA_API int lua_yieldk ( lua_State L,
int  nresults,
lua_KContext  ctx,
lua_KFunction  k 
)
Here is the call graph for this function:

◆ luaD_call()

void luaD_call ( lua_State L,
StkId  func,
int  nResults 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaD_callnoyield()

void luaD_callnoyield ( lua_State L,
StkId  func,
int  nResults 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaD_growstack()

void luaD_growstack ( lua_State L,
int  n 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaD_hook()

void luaD_hook ( lua_State L,
int  event,
int  line 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaD_inctop()

void luaD_inctop ( lua_State L)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaD_pcall()

int luaD_pcall ( lua_State L,
Pfunc  func,
void u,
ptrdiff_t  old_top,
ptrdiff_t  ef 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaD_poscall()

int luaD_poscall ( lua_State L,
CallInfo ci,
StkId  firstResult,
int  nres 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaD_precall()

int luaD_precall ( lua_State L,
StkId  func,
int  nresults 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaD_protectedparser()

int luaD_protectedparser ( lua_State L,
ZIO z,
const char *  name,
const char *  mode 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaD_rawrunprotected()

int luaD_rawrunprotected ( lua_State L,
Pfunc  f,
void ud 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaD_reallocstack()

void luaD_reallocstack ( lua_State L,
int  newsize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaD_shrinkstack()

void luaD_shrinkstack ( lua_State L)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaD_throw()

l_noret luaD_throw ( lua_State L,
int  errcode 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ moveresults()

static int moveresults ( lua_State L,
const TValue firstResult,
StkId  res,
int  nres,
int  wanted 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ recover()

static int recover ( lua_State L,
int  status 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resume()

static void resume ( lua_State L,
void ud 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resume_error()

static int resume_error ( lua_State L,
const char *  msg,
int  narg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ seterrorobj()

static void seterrorobj ( lua_State L,
int  errcode,
StkId  oldtop 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stackerror()

static void stackerror ( lua_State L)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stackinuse()

static int stackinuse ( lua_State L)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tryfuncTM()

static void tryfuncTM ( lua_State L,
StkId  func 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unroll()

static void unroll ( lua_State L,
void ud 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: