RetroArch
Macros | Functions | Variables
lua.c File Reference
#include "lprefix.h"
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Include dependency graph for lua.c:

Macros

#define lua_c
 
#define LUA_PROMPT   "> "
 
#define LUA_PROMPT2   ">> "
 
#define LUA_PROGNAME   "lua"
 
#define LUA_MAXINPUT   512
 
#define LUA_INIT_VAR   "LUA_INIT"
 
#define LUA_INITVARVERSION   LUA_INIT_VAR LUA_VERSUFFIX
 
#define lua_stdin_is_tty()   1 /* assume stdin is a tty */
 
#define lua_readline(L, b, p)
 
#define lua_saveline(L, line)   { (void)L; (void)line; }
 
#define lua_freeline(L, b)   { (void)L; (void)b; }
 
#define EOFMARK   "<eof>"
 
#define marklen   (sizeof(EOFMARK)/sizeof(char) - 1)
 
#define has_error   1 /* bad option */
 
#define has_i   2 /* -i */
 
#define has_v   4 /* -v */
 
#define has_e   8 /* -e */
 
#define has_E   16 /* -E */
 

Functions

static void lstop (lua_State *L, lua_Debug *ar)
 
static void laction (int i)
 
static void print_usage (const char *badoption)
 
static void l_message (const char *pname, const char *msg)
 
static int report (lua_State *L, int status)
 
static int msghandler (lua_State *L)
 
static int docall (lua_State *L, int narg, int nres)
 
static void print_version (void)
 
static void createargtable (lua_State *L, char **argv, int argc, int script)
 
static int dochunk (lua_State *L, int status)
 
static int dofile (lua_State *L, const char *name)
 
static int dostring (lua_State *L, const char *s, const char *name)
 
static int dolibrary (lua_State *L, const char *name)
 
static const char * get_prompt (lua_State *L, int firstline)
 
static int incomplete (lua_State *L, int status)
 
static int pushline (lua_State *L, int firstline)
 
static int addreturn (lua_State *L)
 
static int multiline (lua_State *L)
 
static int loadline (lua_State *L)
 
static void l_print (lua_State *L)
 
static void doREPL (lua_State *L)
 
static int pushargs (lua_State *L)
 
static int handle_script (lua_State *L, char **argv)
 
static int collectargs (char **argv, int *first)
 
static int runargs (lua_State *L, char **argv, int n)
 
static int handle_luainit (lua_State *L)
 
static int pmain (lua_State *L)
 
int main (int argc, char **argv)
 

Variables

static lua_StateglobalL = NULL
 
static const char * progname = LUA_PROGNAME
 

Macro Definition Documentation

◆ EOFMARK

#define EOFMARK   "<eof>"

◆ has_e

#define has_e   8 /* -e */

◆ has_E

#define has_E   16 /* -E */

◆ has_error

#define has_error   1 /* bad option */

◆ has_i

#define has_i   2 /* -i */

◆ has_v

#define has_v   4 /* -v */

◆ lua_c

#define lua_c

◆ lua_freeline

#define lua_freeline (   L,
  b 
)    { (void)L; (void)b; }

◆ LUA_INIT_VAR

#define LUA_INIT_VAR   "LUA_INIT"

◆ LUA_INITVARVERSION

#define LUA_INITVARVERSION   LUA_INIT_VAR LUA_VERSUFFIX

◆ LUA_MAXINPUT

#define LUA_MAXINPUT   512

◆ LUA_PROGNAME

#define LUA_PROGNAME   "lua"

◆ LUA_PROMPT

#define LUA_PROMPT   "> "

◆ LUA_PROMPT2

#define LUA_PROMPT2   ">> "

◆ lua_readline

#define lua_readline (   L,
  b,
  p 
)
Value:
((void)L, fputs(p, stdout), fflush(stdout), /* show prompt */ \
fgets(b, LUA_MAXINPUT, stdin) != NULL) /* get line */
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
GLboolean GLboolean GLboolean b
Definition: glext.h:6844
#define NULL
Pointer to 0.
Definition: gctypes.h:65
#define fflush
Definition: file_stream_transforms.h:61
GLfloat GLfloat p
Definition: glext.h:9809
Ιστορικό Εικόνα Πληροφορίες Όλοι Οι Χρήστες Χειρίζονται Το Μενού Αριστερό Αναλογικό Αριστερό Αναλογικό Αριστερό Αναλογικό 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
#define LUA_MAXINPUT
Definition: lua.c:34

◆ lua_saveline

#define lua_saveline (   L,
  line 
)    { (void)L; (void)line; }

◆ lua_stdin_is_tty

#define lua_stdin_is_tty ( )    1 /* assume stdin is a tty */

◆ marklen

#define marklen   (sizeof(EOFMARK)/sizeof(char) - 1)

Function Documentation

◆ addreturn()

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

◆ collectargs()

static int collectargs ( char **  argv,
int *  first 
)
static
Here is the caller graph for this function:

◆ createargtable()

static void createargtable ( lua_State L,
char **  argv,
int  argc,
int  script 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ docall()

static int docall ( lua_State L,
int  narg,
int  nres 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dochunk()

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

◆ dofile()

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

◆ dolibrary()

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

◆ doREPL()

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

◆ dostring()

static int dostring ( lua_State L,
const char *  s,
const char *  name 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_prompt()

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

◆ handle_luainit()

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

◆ handle_script()

static int handle_script ( lua_State L,
char **  argv 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ incomplete()

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

◆ l_message()

static void l_message ( const char *  pname,
const char *  msg 
)
static
Here is the caller graph for this function:

◆ l_print()

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

◆ laction()

static void laction ( int  i)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadline()

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

◆ lstop()

static void lstop ( lua_State L,
lua_Debug ar 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

This file contains the main entrypoints for the Wii U executable that set up the call to main().

Here is the call graph for this function:

◆ msghandler()

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

◆ multiline()

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

◆ pmain()

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

◆ print_usage()

static void print_usage ( const char *  badoption)
static
Here is the caller graph for this function:

◆ print_version()

static void print_version ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pushargs()

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

◆ pushline()

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

◆ report()

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

◆ runargs()

static int runargs ( lua_State L,
char **  argv,
int  n 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ globalL

lua_State* globalL = NULL
static

◆ progname

const char* progname = LUA_PROGNAME
static