Classes | Defines | Typedefs | Functions

lua/lua.h File Reference

#include <stdarg.h>
#include <stddef.h>
#include "luaconf.h"
Include dependency graph for lua.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  lua_Debug

Defines

#define LUA_VERSION_MAJOR   "5"
#define LUA_VERSION_MINOR   "2"
#define LUA_VERSION_NUM   502
#define LUA_VERSION_RELEASE   "0"
#define LUA_VERSION   "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR
#define LUA_RELEASE   LUA_VERSION "." LUA_VERSION_RELEASE
#define LUA_COPYRIGHT   LUA_RELEASE " Copyright (C) 1994-2011 Lua.org, PUC-Rio"
#define LUA_AUTHORS   "R. Ierusalimschy, L. H. de Figueiredo, W. Celes"
#define LUA_SIGNATURE   "\033Lua"
#define LUA_MULTRET   (-1)
#define LUA_REGISTRYINDEX   LUAI_FIRSTPSEUDOIDX
#define lua_upvalueindex(i)   (LUA_REGISTRYINDEX - (i))
#define LUA_OK   0
#define LUA_YIELD   1
#define LUA_ERRRUN   2
#define LUA_ERRSYNTAX   3
#define LUA_ERRMEM   4
#define LUA_ERRGCMM   5
#define LUA_ERRERR   6
#define LUA_TNONE   (-1)
#define LUA_TNIL   0
#define LUA_TBOOLEAN   1
#define LUA_TLIGHTUSERDATA   2
#define LUA_TNUMBER   3
#define LUA_TSTRING   4
#define LUA_TTABLE   5
#define LUA_TFUNCTION   6
#define LUA_TUSERDATA   7
#define LUA_TTHREAD   8
#define LUA_NUMTAGS   9
#define LUA_MINSTACK   20
#define LUA_RIDX_MAINTHREAD   1
#define LUA_RIDX_GLOBALS   2
#define LUA_RIDX_LAST   LUA_RIDX_GLOBALS
#define LUA_OPADD   0
#define LUA_OPSUB   1
#define LUA_OPMUL   2
#define LUA_OPDIV   3
#define LUA_OPMOD   4
#define LUA_OPPOW   5
#define LUA_OPUNM   6
#define LUA_OPEQ   0
#define LUA_OPLT   1
#define LUA_OPLE   2
#define lua_call(L, n, r)   lua_callk(L, (n), (r), 0, NULL)
#define lua_pcall(L, n, r, f)   lua_pcallk(L, (n), (r), (f), 0, NULL)
#define lua_yield(L, n)   lua_yieldk(L, (n), 0, NULL)
#define LUA_GCSTOP   0
#define LUA_GCRESTART   1
#define LUA_GCCOLLECT   2
#define LUA_GCCOUNT   3
#define LUA_GCCOUNTB   4
#define LUA_GCSTEP   5
#define LUA_GCSETPAUSE   6
#define LUA_GCSETSTEPMUL   7
#define LUA_GCSETMAJORINC   8
#define LUA_GCISRUNNING   9
#define LUA_GCGEN   10
#define LUA_GCINC   11
#define lua_tonumber(L, i)   lua_tonumberx(L,i,NULL)
#define lua_tointeger(L, i)   lua_tointegerx(L,i,NULL)
#define lua_tounsigned(L, i)   lua_tounsignedx(L,i,NULL)
#define lua_pop(L, n)   lua_settop(L, -(n)-1)
#define lua_newtable(L)   lua_createtable(L, 0, 0)
#define lua_register(L, n, f)   (lua_pushcfunction(L, (f)), lua_setglobal(L, (n)))
#define lua_pushcfunction(L, f)   lua_pushcclosure(L, (f), 0)
#define lua_isfunction(L, n)   (lua_type(L, (n)) == LUA_TFUNCTION)
#define lua_istable(L, n)   (lua_type(L, (n)) == LUA_TTABLE)
#define lua_islightuserdata(L, n)   (lua_type(L, (n)) == LUA_TLIGHTUSERDATA)
#define lua_isnil(L, n)   (lua_type(L, (n)) == LUA_TNIL)
#define lua_isboolean(L, n)   (lua_type(L, (n)) == LUA_TBOOLEAN)
#define lua_isthread(L, n)   (lua_type(L, (n)) == LUA_TTHREAD)
#define lua_isnone(L, n)   (lua_type(L, (n)) == LUA_TNONE)
#define lua_isnoneornil(L, n)   (lua_type(L, (n)) <= 0)
#define lua_pushliteral(L, s)   lua_pushlstring(L, "" s, (sizeof(s)/sizeof(char))-1)
#define lua_pushglobaltable(L)   lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_GLOBALS)
#define lua_tostring(L, i)   lua_tolstring(L, (i), NULL)
#define LUA_HOOKCALL   0
#define LUA_HOOKRET   1
#define LUA_HOOKLINE   2
#define LUA_HOOKCOUNT   3
#define LUA_HOOKTAILCALL   4
#define LUA_MASKCALL   (1 << LUA_HOOKCALL)
#define LUA_MASKRET   (1 << LUA_HOOKRET)
#define LUA_MASKLINE   (1 << LUA_HOOKLINE)
#define LUA_MASKCOUNT   (1 << LUA_HOOKCOUNT)

Typedefs

typedef struct lua_State lua_State
typedef int(* lua_CFunction )(lua_State *L)
typedef const char *(* lua_Reader )(lua_State *L, void *ud, size_t *sz)
typedef int(* lua_Writer )(lua_State *L, const void *p, size_t sz, void *ud)
typedef void *(* lua_Alloc )(void *ud, void *ptr, size_t osize, size_t nsize)
typedef LUA_NUMBER lua_Number
typedef LUA_INTEGER lua_Integer
typedef LUA_UNSIGNED lua_Unsigned
typedef struct lua_Debug lua_Debug
typedef void(* lua_Hook )(lua_State *L, lua_Debug *ar)

Functions

LUA_API lua_State *() lua_newstate (lua_Alloc f, void *ud)
LUA_API void() lua_close (lua_State *L)
LUA_API lua_State *() lua_newthread (lua_State *L)
LUA_API lua_CFunction() lua_atpanic (lua_State *L, lua_CFunction panicf)
LUA_API const lua_Number *() lua_version (lua_State *L)
LUA_API int() lua_absindex (lua_State *L, int idx)
LUA_API int() lua_gettop (lua_State *L)
LUA_API void() lua_settop (lua_State *L, int idx)
LUA_API void() lua_pushvalue (lua_State *L, int idx)
LUA_API void() lua_remove (lua_State *L, int idx)
LUA_API void() lua_insert (lua_State *L, int idx)
LUA_API void() lua_replace (lua_State *L, int idx)
LUA_API void() lua_copy (lua_State *L, int fromidx, int toidx)
LUA_API int() lua_checkstack (lua_State *L, int sz)
LUA_API void() lua_xmove (lua_State *from, lua_State *to, int n)
LUA_API int() lua_isnumber (lua_State *L, int idx)
LUA_API int() lua_isstring (lua_State *L, int idx)
LUA_API int() lua_iscfunction (lua_State *L, int idx)
LUA_API int() lua_isuserdata (lua_State *L, int idx)
LUA_API int() lua_type (lua_State *L, int idx)
LUA_API const char *() lua_typename (lua_State *L, int tp)
LUA_API lua_Number() lua_tonumberx (lua_State *L, int idx, int *isnum)
LUA_API lua_Integer() lua_tointegerx (lua_State *L, int idx, int *isnum)
LUA_API lua_Unsigned() lua_tounsignedx (lua_State *L, int idx, int *isnum)
LUA_API int() lua_toboolean (lua_State *L, int idx)
LUA_API const char *() lua_tolstring (lua_State *L, int idx, size_t *len)
LUA_API size_t() lua_rawlen (lua_State *L, int idx)
LUA_API lua_CFunction() lua_tocfunction (lua_State *L, int idx)
LUA_API void *() lua_touserdata (lua_State *L, int idx)
LUA_API lua_State *() lua_tothread (lua_State *L, int idx)
LUA_API const void *() lua_topointer (lua_State *L, int idx)
LUA_API void() lua_arith (lua_State *L, int op)
LUA_API int() lua_rawequal (lua_State *L, int idx1, int idx2)
LUA_API int() lua_compare (lua_State *L, int idx1, int idx2, int op)
LUA_API void() lua_pushnil (lua_State *L)
LUA_API void() lua_pushnumber (lua_State *L, lua_Number n)
LUA_API void() lua_pushinteger (lua_State *L, lua_Integer n)
LUA_API void() lua_pushunsigned (lua_State *L, lua_Unsigned n)
LUA_API const char *() lua_pushlstring (lua_State *L, const char *s, size_t l)
LUA_API const char *() lua_pushstring (lua_State *L, const char *s)
LUA_API const char *() lua_pushvfstring (lua_State *L, const char *fmt, va_list argp)
LUA_API const char *() lua_pushfstring (lua_State *L, const char *fmt,...)
LUA_API void() lua_pushcclosure (lua_State *L, lua_CFunction fn, int n)
LUA_API void() lua_pushboolean (lua_State *L, int b)
LUA_API void() lua_pushlightuserdata (lua_State *L, void *p)
LUA_API int() lua_pushthread (lua_State *L)
LUA_API void() lua_getglobal (lua_State *L, const char *var)
LUA_API void() lua_gettable (lua_State *L, int idx)
LUA_API void() lua_getfield (lua_State *L, int idx, const char *k)
LUA_API void() lua_rawget (lua_State *L, int idx)
LUA_API void() lua_rawgeti (lua_State *L, int idx, int n)
LUA_API void() lua_rawgetp (lua_State *L, int idx, const void *p)
LUA_API void() lua_createtable (lua_State *L, int narr, int nrec)
LUA_API void *() lua_newuserdata (lua_State *L, size_t sz)
LUA_API int() lua_getmetatable (lua_State *L, int objindex)
LUA_API void() lua_getuservalue (lua_State *L, int idx)
LUA_API void() lua_setglobal (lua_State *L, const char *var)
LUA_API void() lua_settable (lua_State *L, int idx)
LUA_API void() lua_setfield (lua_State *L, int idx, const char *k)
LUA_API void() lua_rawset (lua_State *L, int idx)
LUA_API void() lua_rawseti (lua_State *L, int idx, int n)
LUA_API void() lua_rawsetp (lua_State *L, int idx, const void *p)
LUA_API int() lua_setmetatable (lua_State *L, int objindex)
LUA_API void() lua_setuservalue (lua_State *L, int idx)
LUA_API void() lua_callk (lua_State *L, int nargs, int nresults, int ctx, lua_CFunction k)
LUA_API int() lua_getctx (lua_State *L, int *ctx)
LUA_API int() lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc, int ctx, lua_CFunction k)
LUA_API int() lua_load (lua_State *L, lua_Reader reader, void *dt, const char *chunkname, const char *mode)
LUA_API int() lua_dump (lua_State *L, lua_Writer writer, void *data)
LUA_API int() lua_yieldk (lua_State *L, int nresults, int ctx, lua_CFunction k)
LUA_API int() lua_resume (lua_State *L, lua_State *from, int narg)
LUA_API int() lua_status (lua_State *L)
LUA_API int() lua_gc (lua_State *L, int what, int data)
LUA_API int() lua_error (lua_State *L)
LUA_API int() lua_next (lua_State *L, int idx)
LUA_API void() lua_concat (lua_State *L, int n)
LUA_API void() lua_len (lua_State *L, int idx)
LUA_API lua_Alloc() lua_getallocf (lua_State *L, void **ud)
LUA_API void() lua_setallocf (lua_State *L, lua_Alloc f, void *ud)
LUA_API int() lua_getstack (lua_State *L, int level, lua_Debug *ar)
LUA_API int() lua_getinfo (lua_State *L, const char *what, lua_Debug *ar)
LUA_API const char *() lua_getlocal (lua_State *L, const lua_Debug *ar, int n)
LUA_API const char *() lua_setlocal (lua_State *L, const lua_Debug *ar, int n)
LUA_API const char *() lua_getupvalue (lua_State *L, int funcindex, int n)
LUA_API const char *() lua_setupvalue (lua_State *L, int funcindex, int n)
LUA_API void *() lua_upvalueid (lua_State *L, int fidx, int n)
LUA_API void() lua_upvaluejoin (lua_State *L, int fidx1, int n1, int fidx2, int n2)
LUA_API int() lua_sethook (lua_State *L, lua_Hook func, int mask, int count)
LUA_API lua_Hook() lua_gethook (lua_State *L)
LUA_API int() lua_gethookmask (lua_State *L)
LUA_API int() lua_gethookcount (lua_State *L)

Define Documentation

#define LUA_AUTHORS   "R. Ierusalimschy, L. H. de Figueiredo, W. Celes"

Definition at line 27 of file lua.h.

#define lua_call (   L,
  n,
  r 
)    lua_callk(L, (n), (r), 0, NULL)
#define LUA_COPYRIGHT   LUA_RELEASE " Copyright (C) 1994-2011 Lua.org, PUC-Rio"

Definition at line 26 of file lua.h.

Referenced by doargs(), and print_version().

#define LUA_ERRERR   6

Definition at line 51 of file lua.h.

Referenced by luaD_call(), luaD_growstack(), luaG_errormsg(), and seterrorobj().

#define LUA_ERRGCMM   5

Definition at line 50 of file lua.h.

#define LUA_ERRMEM   4

Definition at line 49 of file lua.h.

Referenced by luaM_realloc_(), and seterrorobj().

#define LUA_ERRRUN   2

Definition at line 47 of file lua.h.

Referenced by GCTM(), and luaG_errormsg().

#define LUA_ERRSYNTAX   3

Definition at line 48 of file lua.h.

Referenced by checkmode(), error(), incomplete(), and lexerror().

#define LUA_GCCOLLECT   2

Definition at line 278 of file lua.h.

Referenced by lua_gc(), and report().

#define LUA_GCCOUNT   3

Definition at line 279 of file lua.h.

Referenced by lua_gc(), and luaB_collectgarbage().

#define LUA_GCCOUNTB   4

Definition at line 280 of file lua.h.

Referenced by lua_gc(), and luaB_collectgarbage().

#define LUA_GCGEN   10

Definition at line 286 of file lua.h.

Referenced by lua_gc().

#define LUA_GCINC   11

Definition at line 287 of file lua.h.

Referenced by lua_gc(), and luaB_collectgarbage().

#define LUA_GCISRUNNING   9

Definition at line 285 of file lua.h.

Referenced by lua_gc(), and luaB_collectgarbage().

#define LUA_GCRESTART   1

Definition at line 277 of file lua.h.

Referenced by lua_gc(), and pmain().

#define LUA_GCSETMAJORINC   8

Definition at line 284 of file lua.h.

Referenced by lua_gc().

#define LUA_GCSETPAUSE   6

Definition at line 282 of file lua.h.

Referenced by lua_gc().

#define LUA_GCSETSTEPMUL   7

Definition at line 283 of file lua.h.

Referenced by lua_gc().

#define LUA_GCSTEP   5

Definition at line 281 of file lua.h.

Referenced by lua_gc(), and luaB_collectgarbage().

#define LUA_GCSTOP   0

Definition at line 276 of file lua.h.

Referenced by lua_gc(), and pmain().

#define LUA_HOOKCALL   0

Definition at line 355 of file lua.h.

Referenced by luaD_precall().

#define LUA_HOOKCOUNT   3

Definition at line 358 of file lua.h.

Referenced by traceexec().

#define LUA_HOOKLINE   2

Definition at line 357 of file lua.h.

Referenced by traceexec().

#define LUA_HOOKRET   1

Definition at line 356 of file lua.h.

Referenced by luaD_poscall().

#define LUA_HOOKTAILCALL   4

Definition at line 359 of file lua.h.

#define lua_isboolean (   L,
  n 
)    (lua_type(L, (n)) == LUA_TBOOLEAN)

Definition at line 330 of file lua.h.

Referenced by ai::ai_move(), and os_exit().

#define lua_isfunction (   L,
  n 
)    (lua_type(L, (n)) == LUA_TFUNCTION)

Definition at line 326 of file lua.h.

Referenced by db_getinfo(), db_getlocal(), dooptions(), findloader(), hookf(), and intf_find_path().

#define lua_islightuserdata (   L,
  n 
)    (lua_type(L, (n)) == LUA_TLIGHTUSERDATA)

Definition at line 328 of file lua.h.

#define lua_isnil (   L,
  n 
)    (lua_type(L, (n)) == LUA_TNIL)
#define lua_isnone (   L,
  n 
)    (lua_type(L, (n)) == LUA_TNONE)

Definition at line 332 of file lua.h.

Referenced by intf_message(), intf_set_terrain(), io_close(), io_lines(), and luaB_loadfile().

#define lua_isnoneornil (   L,
  n 
)    (lua_type(L, (n)) <= 0)
#define lua_istable (   L,
  n 
)    (lua_type(L, (n)) == LUA_TTABLE)
#define lua_isthread (   L,
  n 
)    (lua_type(L, (n)) == LUA_TTHREAD)

Definition at line 331 of file lua.h.

Referenced by getthread().

#define LUA_MASKCALL   (1 << LUA_HOOKCALL)

Definition at line 365 of file lua.h.

Referenced by laction(), luaD_precall(), and unmakemask().

#define LUA_MASKCOUNT   (1 << LUA_HOOKCOUNT)

Definition at line 368 of file lua.h.

Referenced by laction(), luaV_execute(), and traceexec().

#define LUA_MASKLINE   (1 << LUA_HOOKLINE)

Definition at line 367 of file lua.h.

Referenced by luaD_poscall(), luaV_execute(), traceexec(), and unmakemask().

#define LUA_MASKRET   (1 << LUA_HOOKRET)

Definition at line 366 of file lua.h.

Referenced by laction(), luaD_poscall(), and unmakemask().

#define LUA_MINSTACK   20

Definition at line 93 of file lua.h.

Referenced by aux_lines(), dotty(), g_read(), luaD_hook(), luaD_precall(), luaW_filltable(), and luaW_toconfig().

#define LUA_MULTRET   (-1)
#define lua_newtable (   L  )     lua_createtable(L, 0, 0)
#define LUA_NUMTAGS   9

Definition at line 88 of file lua.h.

#define LUA_OK   0
#define LUA_OPADD   0

Definition at line 179 of file lua.h.

Referenced by constfolding(), lua_arith(), luaO_arith(), and luaV_arith().

#define LUA_OPDIV   3

Definition at line 182 of file lua.h.

Referenced by luaO_arith().

#define LUA_OPEQ   0

Definition at line 189 of file lua.h.

Referenced by lua_compare().

#define LUA_OPLE   2

Definition at line 191 of file lua.h.

Referenced by lua_compare().

#define LUA_OPLT   1

Definition at line 190 of file lua.h.

Referenced by lua_compare(), and sort_comp().

#define LUA_OPMOD   4

Definition at line 183 of file lua.h.

Referenced by luaO_arith().

#define LUA_OPMUL   2

Definition at line 181 of file lua.h.

Referenced by luaO_arith().

#define LUA_OPPOW   5

Definition at line 184 of file lua.h.

Referenced by luaO_arith().

#define LUA_OPSUB   1

Definition at line 180 of file lua.h.

Referenced by luaO_arith().

#define LUA_OPUNM   6

Definition at line 185 of file lua.h.

Referenced by lua_arith(), and luaO_arith().

#define lua_pcall (   L,
  n,
  r,
  f 
)    lua_pcallk(L, (n), (r), (f), 0, NULL)

Definition at line 254 of file lua.h.

Referenced by db_debug(), docall(), dotty(), luaW_pcall(), and main().

#define lua_pop (   L,
  n 
)    lua_settop(L, -(n)-1)
#define lua_pushcfunction (   L,
  f 
)    lua_pushcclosure(L, (f), 0)
#define lua_pushglobaltable (   L  )     lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_GLOBALS)
#define lua_pushliteral (   L,
  s 
)    lua_pushlstring(L, "" s, (sizeof(s)/sizeof(char))-1)
#define lua_register (   L,
  n,
  f 
)    (lua_pushcfunction(L, (f)), lua_setglobal(L, (n)))

Definition at line 322 of file lua.h.

#define LUA_REGISTRYINDEX   LUAI_FIRSTPSEUDOIDX
#define LUA_RELEASE   LUA_VERSION "." LUA_VERSION_RELEASE

Definition at line 25 of file lua.h.

#define LUA_RIDX_GLOBALS   2

Definition at line 98 of file lua.h.

Referenced by init_registry(), lua_getglobal(), lua_load(), and lua_setglobal().

#define LUA_RIDX_LAST   LUA_RIDX_GLOBALS

Definition at line 99 of file lua.h.

Referenced by init_registry().

#define LUA_RIDX_MAINTHREAD   1

Definition at line 97 of file lua.h.

Referenced by init_registry().

#define LUA_SIGNATURE   "\033Lua"

Definition at line 31 of file lua.h.

Referenced by f_parser(), luaL_loadfilex(), luaU_header(), luaU_undump(), and PrintHeader().

#define LUA_TBOOLEAN   1
#define LUA_TFUNCTION   6
#define LUA_TLIGHTUSERDATA   2

Definition at line 80 of file lua.h.

Referenced by db_setuservalue(), lua_topointer(), lua_touserdata(), luaV_equalobj_(), and mainposition().

#define LUA_TNIL   0
#define LUA_TNONE   (-1)

Definition at line 76 of file lua.h.

Referenced by lua_type(), luaL_checkany(), luaW_toconfig(), and luaW_tovconfig().

#define LUA_TNUMBER   3
#define lua_tointeger (   L,
  i 
)    lua_tointegerx(L,i,NULL)
#define lua_tonumber (   L,
  i 
)    lua_tonumberx(L,i,NULL)
#define lua_tostring (   L,
  i 
)    lua_tolstring(L, (i), NULL)
#define lua_tounsigned (   L,
  i 
)    lua_tounsignedx(L,i,NULL)

Definition at line 316 of file lua.h.

Referenced by luaL_checkversion_().

#define LUA_TSTRING   4
#define LUA_TTABLE   5
#define LUA_TTHREAD   8
#define LUA_TUSERDATA   7
#define lua_upvalueindex (   i  )     (LUA_REGISTRYINDEX - (i))
#define LUA_VERSION   "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR

Definition at line 24 of file lua.h.

Referenced by luaopen_base().

#define LUA_VERSION_MAJOR   "5"

Definition at line 19 of file lua.h.

#define LUA_VERSION_MINOR   "2"

Definition at line 20 of file lua.h.

#define LUA_VERSION_NUM   502

Definition at line 21 of file lua.h.

#define LUA_VERSION_RELEASE   "0"

Definition at line 22 of file lua.h.

#define lua_yield (   L,
  n 
)    lua_yieldk(L, (n), 0, NULL)

Definition at line 268 of file lua.h.

Referenced by luaB_yield().

#define LUA_YIELD   1

Definition at line 46 of file lua.h.

Referenced by auxresume(), lua_resume(), lua_yieldk(), luaB_costatus(), pcallcont(), resume(), and traceexec().


Typedef Documentation

typedef void*(* lua_Alloc)(void *ud, void *ptr, size_t osize, size_t nsize)

Definition at line 70 of file lua.h.

typedef int(* lua_CFunction)(lua_State *L)

Definition at line 56 of file lua.h.

typedef struct lua_Debug lua_Debug

Definition at line 370 of file lua.h.

typedef void(* lua_Hook)(lua_State *L, lua_Debug *ar)

Definition at line 374 of file lua.h.

typedef LUA_INTEGER lua_Integer

Definition at line 107 of file lua.h.

typedef LUA_NUMBER lua_Number

Definition at line 103 of file lua.h.

typedef const char*(* lua_Reader)(lua_State *L, void *ud, size_t *sz)

Definition at line 62 of file lua.h.

typedef struct lua_State lua_State

Definition at line 54 of file lua.h.

typedef LUA_UNSIGNED lua_Unsigned

Definition at line 110 of file lua.h.

typedef int(* lua_Writer)(lua_State *L, const void *p, size_t sz, void *ud)

Definition at line 64 of file lua.h.


Function Documentation

LUA_API int() lua_absindex ( lua_State L,
int  idx 
)

Definition at line 144 of file lapi.c.

References cast_int, lua_State::ci, CallInfo::func, LUA_REGISTRYINDEX, and lua_State::top.

Referenced by luaL_callmeta(), luaL_getsubtable(), luaL_ref(), and luaL_unref().

Here is the caller graph for this function:

LUA_API void() lua_arith ( lua_State L,
int  op 
)

Definition at line 284 of file lapi.c.

References api_checknelems, cast, changenvalue, lua_lock, LUA_OPADD, LUA_OPUNM, lua_unlock, luaO_arith(), luaV_arith(), nvalue, setobjs2s, TM_ADD, lua_State::top, and ttisnumber.

Here is the call graph for this function:

LUA_API lua_CFunction() lua_atpanic ( lua_State L,
lua_CFunction  panicf 
)

Definition at line 118 of file lapi.c.

References G, lua_lock, and lua_unlock.

Referenced by luaL_newstate().

Here is the caller graph for this function:

LUA_API void() lua_callk ( lua_State L,
int  nargs,
int  nresults,
int  ctx,
lua_CFunction  k 
)

Definition at line 886 of file lapi.c.

References adjustresults, api_check, api_checknelems, CallInfo::c, checkresults, lua_State::ci, isLua, lua_lock, LUA_OK, lua_unlock, luaD_call(), lua_State::nny, lua_State::status, lua_State::top, and CallInfo::u.

Referenced by luaB_dofile().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_checkstack ( lua_State L,
int  sz 
)

Definition at line 83 of file lapi.c.

References cast_int, lua_State::ci, growstack(), lua_lock, lua_unlock, luaD_rawrunprotected(), LUAI_MAXSTACK, lua_State::stack, lua_State::stack_last, CallInfo::top, and lua_State::top.

Referenced by auxresume(), finishpcall(), luaL_checkstack(), luaW_filltable(), luaW_toconfig(), pmain(), and unpack().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_close ( lua_State L  ) 

Definition at line 279 of file lstate.c.

References close_state(), G, lua_lock, and luai_userstateclose.

Referenced by main(), os_exit(), and LuaKernel::~LuaKernel().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_compare ( lua_State L,
int  idx1,
int  idx2,
int  op 
)

Definition at line 307 of file lapi.c.

References api_check, equalobj, index2addr(), isvalid, lua_lock, LUA_OPEQ, LUA_OPLE, LUA_OPLT, lua_unlock, luaV_lessequal(), and luaV_lessthan().

Referenced by sort_comp().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_concat ( lua_State L,
int  n 
)

Definition at line 1128 of file lapi.c.

References api_checknelems, api_incr_top, lua_lock, lua_unlock, luaC_checkGC, luaS_newlstr(), luaV_concat(), setsvalue2s, and lua_State::top.

Referenced by findfield(), loadline(), luaB_auxwrap(), luaB_error(), luaL_error(), and luaL_traceback().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_copy ( lua_State L,
int  fromidx,
int  toidx 
)

Definition at line 216 of file lapi.c.

References api_checkvalidindex, index2addr(), lua_lock, lua_unlock, and moveto().

Referenced by luaB_xpcall(), and pushglobalfuncname().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_createtable ( lua_State L,
int  narr,
int  nrec 
)
LUA_API int() lua_dump ( lua_State L,
lua_Writer  writer,
void *  data 
)

Definition at line 994 of file lapi.c.

References api_checknelems, getproto, isLfunction, lua_lock, lua_unlock, luaU_dump(), and lua_State::top.

Referenced by str_dump().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_error ( lua_State L  ) 

Definition at line 1102 of file lapi.c.

References api_checknelems, lua_lock, lua_unlock, and luaG_errormsg().

Referenced by intf_dofile(), luaB_auxwrap(), luaB_dofile(), luaB_error(), and luaL_error().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_gc ( lua_State L,
int  what,
int  data 
)
LUA_API lua_Alloc() lua_getallocf ( lua_State L,
void **  ud 
)

Definition at line 1154 of file lapi.c.

References G, lua_lock, and lua_unlock.

LUA_API int() lua_getctx ( lua_State L,
int *  ctx 
)

Definition at line 877 of file lapi.c.

References CallInfo::c, CallInfo::callstatus, lua_State::ci, CIST_YIELDED, and CallInfo::u.

Referenced by pcallcont().

Here is the caller graph for this function:

LUA_API void() lua_getfield ( lua_State L,
int  idx,
const char *  k 
)
LUA_API void() lua_getglobal ( lua_State L,
const char *  var 
)

Definition at line 599 of file lapi.c.

References G, hvalue, lua_lock, LUA_RIDX_GLOBALS, lua_unlock, luaH_getint(), luaS_new(), luaV_gettable(), setsvalue2s, and lua_State::top.

Referenced by dotty(), get_prompt(), LuaKernel::initialize(), luaB_print(), LuaKernel::LuaKernel(), and LuaKernel::set_wml_action().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API lua_Hook() lua_gethook ( lua_State L  ) 

Definition at line 65 of file ldebug.c.

References lua_State::hook.

Referenced by db_gethook().

Here is the caller graph for this function:

LUA_API int() lua_gethookcount ( lua_State L  ) 

Definition at line 75 of file ldebug.c.

References lua_State::basehookcount.

Referenced by db_gethook().

Here is the caller graph for this function:

LUA_API int() lua_gethookmask ( lua_State L  ) 

Definition at line 70 of file ldebug.c.

References lua_State::hookmask.

Referenced by db_gethook().

Here is the caller graph for this function:

LUA_API int() lua_getinfo ( lua_State L,
const char *  what,
lua_Debug ar 
)

Definition at line 263 of file ldebug.c.

References api_check, auxgetinfo(), clvalue, collectvalidlines(), CallInfo::func, lua_Debug::i_ci, incr_top, lua_assert, lua_lock, lua_unlock, setobjs2s, lua_State::top, ttisclosure, and ttisfunction.

Referenced by checkupval(), db_getinfo(), hookf(), luaL_argerror(), luaL_traceback(), luaL_where(), pushglobalfuncname(), and set_env().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API const char*() lua_getlocal ( lua_State L,
const lua_Debug ar,
int  n 
)

Definition at line 141 of file ldebug.c.

References api_incr_top, clLvalue, findlocal(), lua_Debug::i_ci, isLfunction, lua_lock, lua_unlock, luaF_getlocalname(), pos, setobj2s, and lua_State::top.

Referenced by db_getlocal().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_getmetatable ( lua_State L,
int  objindex 
)

Definition at line 679 of file lapi.c.

References api_incr_top, G, hvalue, index2addr(), lua_lock, LUA_TTABLE, LUA_TUSERDATA, lua_unlock, sethvalue, lua_State::top, ttypenv, and uvalue.

Referenced by db_getmetatable(), ll_seeall(), luaB_getmetatable(), luaL_getmetafield(), luaL_testudata(), luaW_hasmetatable(), luaW_toconfig(), and tstring_concat_aux().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_getstack ( lua_State L,
int  level,
lua_Debug ar 
)
LUA_API void() lua_gettable ( lua_State L,
int  idx 
)

Definition at line 610 of file lapi.c.

References api_checkvalidindex, index2addr(), lua_lock, lua_unlock, luaV_gettable(), and lua_State::top.

Referenced by add_value(), ll_register(), and ai::lua_object< T >::to_type().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_gettop ( lua_State L  ) 
LUA_API const char*() lua_getupvalue ( lua_State L,
int  funcindex,
int  n 
)

Definition at line 1210 of file lapi.c.

References api_incr_top, aux_upvalue(), index2addr(), lua_lock, lua_unlock, setobj2s, and lua_State::top.

Referenced by auxupvalue().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_getuservalue ( lua_State L,
int  idx 
)

Definition at line 708 of file lapi.c.

References api_check, api_checkvalidindex, api_incr_top, index2addr(), lua_lock, lua_unlock, sethvalue, setnilvalue, lua_State::top, ttisuserdata, and uvalue.

Referenced by db_getuservalue().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_insert ( lua_State L,
int  idx 
)
LUA_API int() lua_iscfunction ( lua_State L,
int  idx 
)

Definition at line 252 of file lapi.c.

References index2addr(), ttisCclosure, and ttislcf.

Referenced by db_upvaluejoin(), and set_env().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_isnumber ( lua_State L,
int  idx 
)

Definition at line 258 of file lapi.c.

References index2addr(), and tonumber.

Referenced by ai::ai_attack(), db_getinfo(), impl_vconfig_get(), intf_fire_event(), intf_get_time_of_day(), intf_put_unit(), intf_simulate_combat(), luaW_toconfig(), and ai::to_map_location().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_isstring ( lua_State L,
int  idx 
)

Definition at line 265 of file lapi.c.

References LUA_TNUMBER, LUA_TSTRING, and lua_type().

Referenced by add_value(), addfield(), findloader(), generic_reader(), luaB_auxwrap(), luaB_error(), and luaW_toconfig().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_isuserdata ( lua_State L,
int  idx 
)

Definition at line 271 of file lapi.c.

References index2addr(), ttislightuserdata, and ttisuserdata.

Referenced by ai::cfun_ai_get_suitable_keep(), intf_find_path(), intf_find_reach(), and ai::to_map_location().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_len ( lua_State L,
int  idx 
)

Definition at line 1144 of file lapi.c.

References api_incr_top, index2addr(), lua_lock, lua_unlock, luaV_objlen(), and lua_State::top.

Referenced by luaL_len().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_load ( lua_State L,
lua_Reader  reader,
void *  dt,
const char *  chunkname,
const char *  mode 
)

Definition at line 970 of file lapi.c.

References clLvalue, G, hvalue, lua_lock, LUA_OK, LUA_RIDX_GLOBALS, lua_unlock, luaC_barrier, luaD_protectedparser(), luaH_getint(), luaZ_init(), setobj, lua_State::top, LClosure::upvals, and UpVal::v.

Referenced by combine(), luaB_load(), luaL_loadbufferx(), and luaL_loadfilex().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API lua_State*() lua_newstate ( lua_Alloc  f,
void *  ud 
)
LUA_API lua_State*() lua_newthread ( lua_State L  ) 

Definition at line 199 of file lstate.c.

References api_incr_top, lua_State::basehookcount, G, lua_State::hook, lua_State::hookmask, lua_lock, LUA_TTHREAD, lua_unlock, luaC_checkGC, luaC_newobj(), luai_userstatethread, preinit_state(), resethookcount, setthvalue, stack_init(), GCObject::th, and lua_State::top.

Referenced by luaB_cocreate().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void*() lua_newuserdata ( lua_State L,
size_t  sz 
)
LUA_API int() lua_next ( lua_State L,
int  idx 
)

Definition at line 1111 of file lapi.c.

References api_check, api_incr_top, hvalue, index2addr(), lua_lock, lua_unlock, luaH_next(), lua_State::top, and ttistable.

Referenced by findfield(), luaB_next(), LuaKernel::LuaKernel(), luaW_toconfig(), and maxn().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_pcallk ( lua_State L,
int  nargs,
int  nresults,
int  errfunc,
int  ctx,
lua_CFunction  k 
)
LUA_API void() lua_pushboolean ( lua_State L,
int  b 
)
LUA_API void() lua_pushcclosure ( lua_State L,
lua_CFunction  fn,
int  n 
)
LUA_API const char*() lua_pushfstring ( lua_State L,
const char *  fmt,
  ... 
)
LUA_API void() lua_pushinteger ( lua_State L,
lua_Integer  n 
)
LUA_API void() lua_pushlightuserdata ( lua_State L,
void *  p 
)
LUA_API const char*() lua_pushlstring ( lua_State L,
const char *  s,
size_t  l 
)

Definition at line 492 of file lapi.c.

References api_incr_top, getstr, lua_lock, lua_unlock, luaC_checkGC, luaS_newlstr(), setsvalue2s, and lua_State::top.

Referenced by add_value(), loadfunc(), luaL_findtable(), luaL_pushresult(), modinit(), push_onecapture(), pushnexttemplate(), searcher_Croot(), str_sub(), and test_eof().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_pushnil ( lua_State L  ) 
LUA_API void() lua_pushnumber ( lua_State L,
lua_Number  n 
)
LUA_API const char*() lua_pushstring ( lua_State L,
const char *  s 
)
LUA_API int() lua_pushthread ( lua_State L  ) 

Definition at line 584 of file lapi.c.

References api_incr_top, G, lua_lock, lua_unlock, setthvalue, and lua_State::top.

Referenced by luaB_corunning().

Here is the caller graph for this function:

LUA_API void() lua_pushunsigned ( lua_State L,
lua_Unsigned  n 
)

Definition at line 482 of file lapi.c.

References api_incr_top, lua_lock, lua_unlock, lua_unsigned2number, setnvalue, and lua_State::top.

Referenced by b_and(), b_arshift(), b_extract(), b_not(), b_or(), b_replace(), b_rot(), b_shift(), and b_xor().

Here is the caller graph for this function:

LUA_API void() lua_pushvalue ( lua_State L,
int  idx 
)
LUA_API const char*() lua_pushvfstring ( lua_State L,
const char *  fmt,
va_list  argp 
)

Definition at line 522 of file lapi.c.

References lua_lock, lua_unlock, luaC_checkGC, and luaO_pushvfstring().

Referenced by luaL_error().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_rawequal ( lua_State L,
int  idx1,
int  idx2 
)

Definition at line 277 of file lapi.c.

References index2addr(), isvalid, and luaV_rawequalobj.

Referenced by findfield(), luaB_rawequal(), luaL_testudata(), luaW_hasmetatable(), luaW_toconfig(), and tstring_concat_aux().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_rawget ( lua_State L,
int  idx 
)
LUA_API void() lua_rawgeti ( lua_State L,
int  idx,
int  n 
)
LUA_API void() lua_rawgetp ( lua_State L,
int  idx,
const void *  p 
)

Definition at line 653 of file lapi.c.

References api_check, api_incr_top, cast, hvalue, index2addr(), lua_lock, lua_unlock, luaH_get(), setobj2s, setpvalue, lua_State::top, and ttistable.

Referenced by db_gethook(), and hookf().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API size_t() lua_rawlen ( lua_State L,
int  idx 
)

Definition at line 398 of file lapi.c.

References hvalue, index2addr(), LUA_TSTRING, LUA_TTABLE, LUA_TUSERDATA, luaH_getn(), tsvalue, ttypenv, and uvalue.

Referenced by ai::lua_ai_action_handler::create(), ai::lua_ai_context::create(), intf_set_dialog_callback(), luaB_rawlen(), luaL_ref(), luaW_toconfig(), read_line(), and ai::lua_object< T >::to_type().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_rawset ( lua_State L,
int  idx 
)
LUA_API void() lua_rawseti ( lua_State L,
int  idx,
int  n 
)
LUA_API void() lua_rawsetp ( lua_State L,
int  idx,
const void *  p 
)

Definition at line 793 of file lapi.c.

References api_check, api_checknelems, cast, gcvalue, hvalue, index2addr(), lua_lock, lua_unlock, luaC_barrierback, luaH_set(), setobj2t, setpvalue, lua_State::top, and ttistable.

Referenced by db_sethook().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_remove ( lua_State L,
int  idx 
)
LUA_API void() lua_replace ( lua_State L,
int  idx 
)

Definition at line 207 of file lapi.c.

References api_checknelems, lua_lock, lua_unlock, moveto(), and lua_State::top.

Referenced by finishpcall(), generic_reader(), gmatch_aux(), io_lines(), luaB_xpcall(), and pack().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_resume ( lua_State L,
lua_State from,
int  narg 
)

Definition at line 541 of file ldo.c.

References api_checknelems, cast_byte, lua_State::ci, lua_assert, lua_lock, LUA_OK, lua_unlock, LUA_YIELD, luaD_rawrunprotected(), luai_userstateresume, lua_State::nCcalls, lua_State::nny, recover(), resume(), seterrorobj(), lua_State::status, lua_longjmp::status, CallInfo::top, lua_State::top, and unroll().

Referenced by auxresume().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_setallocf ( lua_State L,
lua_Alloc  f,
void *  ud 
)

Definition at line 1164 of file lapi.c.

References G, lua_lock, and lua_unlock.

LUA_API void() lua_setfield ( lua_State L,
int  idx,
const char *  k 
)
LUA_API void() lua_setglobal ( lua_State L,
const char *  var 
)

Definition at line 728 of file lapi.c.

References api_checknelems, G, hvalue, lua_lock, LUA_RIDX_GLOBALS, lua_unlock, luaH_getint(), luaS_new(), luaV_settable(), setsvalue2s, and lua_State::top.

Referenced by handle_script(), LuaKernel::LuaKernel(), and luaopen_table().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_sethook ( lua_State L,
lua_Hook  func,
int  mask,
int  count 
)

Definition at line 50 of file ldebug.c.

References lua_State::basehookcount, cast_byte, lua_State::ci, lua_State::hook, lua_State::hookmask, isLua, CallInfo::l, lua_State::oldpc, resethookcount, and CallInfo::u.

Referenced by db_sethook(), laction(), and lstop().

Here is the caller graph for this function:

LUA_API const char*() lua_setlocal ( lua_State L,
const lua_Debug ar,
int  n 
)

Definition at line 163 of file ldebug.c.

References findlocal(), lua_Debug::i_ci, lua_lock, lua_unlock, pos, setobjs2s, and lua_State::top.

Referenced by db_setlocal().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_setmetatable ( lua_State L,
int  objindex 
)
LUA_API void() lua_settable ( lua_State L,
int  idx 
)

Definition at line 741 of file lapi.c.

References api_checknelems, api_checkvalidindex, index2addr(), lua_lock, lua_unlock, luaV_settable(), and lua_State::top.

Referenced by ai::cfun_ai_get_avoid(), ai::cfun_ai_get_recruitment_pattern(), intf_require(), ll_register(), luaL_findtable(), and ai::push_move_map().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_settop ( lua_State L,
int  idx 
)
LUA_API const char*() lua_setupvalue ( lua_State L,
int  funcindex,
int  n 
)

Definition at line 1224 of file lapi.c.

References api_checknelems, aux_upvalue(), index2addr(), lua_lock, lua_unlock, luaC_barrier, setobj, and lua_State::top.

Referenced by auxupvalue(), luaB_load(), luaB_loadfile(), and set_env().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_setuservalue ( lua_State L,
int  idx 
)

Definition at line 848 of file lapi.c.

References api_check, api_checknelems, api_checkvalidindex, gcvalue, hvalue, index2addr(), lua_lock, lua_unlock, luaC_objbarrier, lua_State::top, ttisnil, ttistable, ttisuserdata, and uvalue.

Referenced by db_setuservalue().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API int() lua_status ( lua_State L  ) 

Definition at line 1009 of file lapi.c.

References lua_State::status.

Referenced by auxresume(), and luaB_costatus().

Here is the caller graph for this function:

LUA_API int() lua_toboolean ( lua_State L,
int  idx 
)
LUA_API lua_CFunction() lua_tocfunction ( lua_State L,
int  idx 
)

Definition at line 409 of file lapi.c.

References clCvalue, fvalue, index2addr(), ttisCclosure, and ttislcf.

Here is the call graph for this function:

LUA_API lua_Integer() lua_tointegerx ( lua_State L,
int  idx,
int *  isnum 
)

Definition at line 340 of file lapi.c.

References index2addr(), lua_number2integer, nvalue, and tonumber.

Referenced by getfield(), luaL_checkinteger(), and luaL_len().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API const char*() lua_tolstring ( lua_State L,
int  idx,
size_t *  len 
)

Definition at line 380 of file lapi.c.

References index2addr(), lua_lock, lua_unlock, luaC_checkGC, luaV_tostring(), svalue, tsvalue, and ttisstring.

Referenced by add_s(), generic_reader(), gmatch_aux(), incomplete(), loadline(), luaB_load(), luaB_print(), luaL_addvalue(), luaL_checklstring(), and luaL_tolstring().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API lua_Number() lua_tonumberx ( lua_State L,
int  idx,
int *  isnum 
)

Definition at line 326 of file lapi.c.

References index2addr(), nvalue, and tonumber.

Referenced by luaB_tonumber(), and luaL_checknumber().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API const void*() lua_topointer ( lua_State L,
int  idx 
)

Definition at line 434 of file lapi.c.

References cast, clCvalue, clLvalue, fvalue, hvalue, index2addr(), LUA_TCCL, LUA_TLCF, LUA_TLCL, LUA_TLIGHTUSERDATA, lua_touserdata(), LUA_TTABLE, LUA_TTHREAD, LUA_TUSERDATA, thvalue, and ttype.

Referenced by luaL_tolstring().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API lua_State*() lua_tothread ( lua_State L,
int  idx 
)

Definition at line 428 of file lapi.c.

References index2addr(), thvalue, and ttisthread.

Referenced by getthread(), luaB_auxwrap(), luaB_coresume(), and luaB_costatus().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API lua_Unsigned() lua_tounsignedx ( lua_State L,
int  idx,
int *  isnum 
)

Definition at line 357 of file lapi.c.

References index2addr(), lua_number2unsigned, nvalue, and tonumber.

Referenced by luaL_checkunsigned().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void*() lua_touserdata ( lua_State L,
int  idx 
)
LUA_API int() lua_type ( lua_State L,
int  idx 
)
LUA_API const char*() lua_typename ( lua_State L,
int  tp 
)

Definition at line 246 of file lapi.c.

References ttypename, and UNUSED.

Referenced by tag_error().

Here is the caller graph for this function:

LUA_API void*() lua_upvalueid ( lua_State L,
int  fidx,
int  n 
)

Definition at line 1254 of file lapi.c.

References api_check, clCvalue, getupvalref(), index2addr(), LUA_TCCL, LUA_TLCL, ttype, and CClosure::upvalue.

Referenced by db_upvalueid().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API void() lua_upvaluejoin ( lua_State L,
int  fidx1,
int  n1,
int  fidx2,
int  n2 
)

Definition at line 1273 of file lapi.c.

References getupvalref(), and luaC_objbarrier.

Referenced by db_upvaluejoin().

Here is the call graph for this function:

Here is the caller graph for this function:

LUA_API const lua_Number*() lua_version ( lua_State L  ) 

Definition at line 128 of file lapi.c.

References G, and game_config::version.

Referenced by lua_newstate(), and luaL_checkversion_().

Here is the caller graph for this function:

LUA_API void() lua_xmove ( lua_State from,
lua_State to,
int  n 
)

Definition at line 103 of file lapi.c.

References api_check, api_checknelems, lua_State::ci, G, lua_lock, lua_unlock, setobj2s, lua_State::top, and CallInfo::top.

Referenced by auxresume(), db_getinfo(), db_getlocal(), db_setlocal(), luaB_cocreate(), and treatstackoption().

Here is the caller graph for this function:

LUA_API int() lua_yieldk ( lua_State L,
int  nresults,
int  ctx,
lua_CFunction  k 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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