Classes | Defines | Typedefs | Functions

lua/lauxlib.h File Reference

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

Go to the source code of this file.

Classes

struct  luaL_Reg
struct  luaL_Buffer
struct  luaL_Stream

Defines

#define LUA_ERRFILE   (LUA_ERRERR+1)
#define luaL_checkversion(L)   luaL_checkversion_(L, LUA_VERSION_NUM)
#define LUA_NOREF   (-2)
#define LUA_REFNIL   (-1)
#define luaL_loadfile(L, f)   luaL_loadfilex(L,f,NULL)
#define luaL_newlibtable(L, l)   lua_createtable(L, 0, sizeof(l)/sizeof((l)[0]) - 1)
#define luaL_newlib(L, l)   (luaL_newlibtable(L,l), luaL_setfuncs(L,l,0))
#define luaL_argcheck(L, cond, numarg, extramsg)   ((void)((cond) || luaL_argerror(L, (numarg), (extramsg))))
#define luaL_checkstring(L, n)   (luaL_checklstring(L, (n), NULL))
#define luaL_optstring(L, n, d)   (luaL_optlstring(L, (n), (d), NULL))
#define luaL_checkint(L, n)   (static_cast<int>(luaL_checkinteger(L, (n))))
#define luaL_optint(L, n, d)   (static_cast<int>(luaL_optinteger(L, (n), (d))))
#define luaL_checklong(L, n)   (static_cast<long>(luaL_checkinteger(L, (n))))
#define luaL_optlong(L, n, d)   (static_cast<long>(luaL_optinteger(L, (n), (d))))
#define luaL_typename(L, i)   lua_typename(L, lua_type(L,(i)))
#define luaL_dofile(L, fn)   (luaL_loadfile(L, fn) || lua_pcall(L, 0, LUA_MULTRET, 0))
#define luaL_dostring(L, s)   (luaL_loadstring(L, s) || lua_pcall(L, 0, LUA_MULTRET, 0))
#define luaL_getmetatable(L, n)   (lua_getfield(L, LUA_REGISTRYINDEX, (n)))
#define luaL_opt(L, f, n, d)   (lua_isnoneornil(L,(n)) ? (d) : f(L,(n)))
#define luaL_loadbuffer(L, s, sz, n)   luaL_loadbufferx(L,s,sz,n,NULL)
#define luaL_addchar(B, c)
#define luaL_addsize(B, s)   ((B)->n += (s))
#define luaL_prepbuffer(B)   luaL_prepbuffsize(B, LUAL_BUFFERSIZE)
#define LUA_FILEHANDLE   "FILE*"
#define luaL_register(L, n, l)   (luaL_openlib(L,(n),(l),0))

Typedefs

typedef struct luaL_Reg luaL_Reg
typedef struct luaL_Buffer luaL_Buffer
typedef struct luaL_Stream luaL_Stream

Functions

LUALIB_API void() luaL_checkversion_ (lua_State *L, lua_Number ver)
LUALIB_API int() luaL_getmetafield (lua_State *L, int obj, const char *e)
LUALIB_API int() luaL_callmeta (lua_State *L, int obj, const char *e)
LUALIB_API const char *() luaL_tolstring (lua_State *L, int idx, size_t *len)
LUALIB_API int() luaL_typerror (lua_State *L, int narg, const char *tname)
LUALIB_API int() luaL_argerror (lua_State *L, int numarg, const char *extramsg)
LUALIB_API const char *() luaL_checklstring (lua_State *L, int numArg, size_t *l)
LUALIB_API const char *() luaL_optlstring (lua_State *L, int numArg, const char *def, size_t *l)
LUALIB_API lua_Number() luaL_checknumber (lua_State *L, int numArg)
LUALIB_API lua_Number() luaL_optnumber (lua_State *L, int nArg, lua_Number def)
LUALIB_API lua_Integer() luaL_checkinteger (lua_State *L, int numArg)
LUALIB_API lua_Integer() luaL_optinteger (lua_State *L, int nArg, lua_Integer def)
LUALIB_API lua_Unsigned() luaL_checkunsigned (lua_State *L, int numArg)
LUALIB_API lua_Unsigned() luaL_optunsigned (lua_State *L, int numArg, lua_Unsigned def)
LUALIB_API void() luaL_checkstack (lua_State *L, int sz, const char *msg)
LUALIB_API void() luaL_checktype (lua_State *L, int narg, int t)
LUALIB_API void() luaL_checkany (lua_State *L, int narg)
LUALIB_API int() luaL_newmetatable (lua_State *L, const char *tname)
LUALIB_API void() luaL_setmetatable (lua_State *L, const char *tname)
LUALIB_API void *() luaL_testudata (lua_State *L, int ud, const char *tname)
LUALIB_API void *() luaL_checkudata (lua_State *L, int ud, const char *tname)
LUALIB_API void() luaL_where (lua_State *L, int lvl)
LUALIB_API int() luaL_error (lua_State *L, const char *fmt,...)
LUALIB_API int() luaL_checkoption (lua_State *L, int narg, const char *def, const char *const lst[])
LUALIB_API int() luaL_fileresult (lua_State *L, int stat, const char *fname)
LUALIB_API int() luaL_execresult (lua_State *L, int stat)
LUALIB_API int() luaL_ref (lua_State *L, int t)
LUALIB_API void() luaL_unref (lua_State *L, int t, int ref)
LUALIB_API int() luaL_loadfilex (lua_State *L, const char *filename, const char *mode)
LUALIB_API int() luaL_loadbufferx (lua_State *L, const char *buff, size_t sz, const char *name, const char *mode)
LUALIB_API int() luaL_loadstring (lua_State *L, const char *s)
LUALIB_API lua_State *() luaL_newstate (void)
LUALIB_API int() luaL_len (lua_State *L, int idx)
LUALIB_API const char *() luaL_gsub (lua_State *L, const char *s, const char *p, const char *r)
LUALIB_API void() luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup)
LUALIB_API int() luaL_getsubtable (lua_State *L, int idx, const char *fname)
LUALIB_API void() luaL_traceback (lua_State *L, lua_State *L1, const char *msg, int level)
LUALIB_API void() luaL_requiref (lua_State *L, const char *modname, lua_CFunction openf, int glb)
LUALIB_API void() luaL_buffinit (lua_State *L, luaL_Buffer *B)
LUALIB_API char *() luaL_prepbuffsize (luaL_Buffer *B, size_t sz)
LUALIB_API void() luaL_addlstring (luaL_Buffer *B, const char *s, size_t l)
LUALIB_API void() luaL_addstring (luaL_Buffer *B, const char *s)
LUALIB_API void() luaL_addvalue (luaL_Buffer *B)
LUALIB_API void() luaL_pushresult (luaL_Buffer *B)
LUALIB_API void() luaL_pushresultsize (luaL_Buffer *B, size_t sz)
LUALIB_API char *() luaL_buffinitsize (lua_State *L, luaL_Buffer *B, size_t sz)
LUALIB_API void() luaL_pushmodule (lua_State *L, const char *modname, int sizehint)
LUALIB_API void() luaL_openlib (lua_State *L, const char *libname, const luaL_Reg *l, int nup)

Define Documentation

#define LUA_ERRFILE   (LUA_ERRERR+1)

Definition at line 20 of file lauxlib.h.

#define LUA_FILEHANDLE   "FILE*"

Definition at line 186 of file lauxlib.h.

Referenced by createmeta(), io_type(), and newprefile().

#define LUA_NOREF   (-2)

Definition at line 70 of file lauxlib.h.

#define LUA_REFNIL   (-1)

Definition at line 71 of file lauxlib.h.

#define luaL_addchar (   B,
  c 
)
Value:
((void)((B)->n < (B)->size || luaL_prepbuffsize((B), 1)), \
   ((B)->b[(B)->n++] = (c)))

Definition at line 153 of file lauxlib.h.

Referenced by add_s(), addquoted(), os_date(), str_format(), and str_gsub().

#define luaL_addsize (   B,
  s 
)    ((B)->n += (s))
#define luaL_argcheck (   L,
  cond,
  numarg,
  extramsg 
)    ((void)((cond) || luaL_argerror(L, (numarg), (extramsg))))
#define luaL_checkint (   L,
  n 
)    (static_cast<int>(luaL_checkinteger(L, (n))))
#define luaL_checklong (   L,
  n 
)    (static_cast<long>(luaL_checkinteger(L, (n))))

Definition at line 120 of file lauxlib.h.

#define luaL_checkstring (   L,
  n 
)    (luaL_checklstring(L, (n), NULL))
#define luaL_checkversion (   L  )     luaL_checkversion_(L, LUA_VERSION_NUM)

Definition at line 30 of file lauxlib.h.

Referenced by luaL_openlib(), and pmain().

#define luaL_dofile (   L,
  fn 
)    (luaL_loadfile(L, fn) || lua_pcall(L, 0, LUA_MULTRET, 0))

Definition at line 125 of file lauxlib.h.

#define luaL_dostring (   L,
  s 
)    (luaL_loadstring(L, s) || lua_pcall(L, 0, LUA_MULTRET, 0))

Definition at line 128 of file lauxlib.h.

#define luaL_getmetatable (   L,
  n 
)    (lua_getfield(L, LUA_REGISTRYINDEX, (n)))

Definition at line 131 of file lauxlib.h.

Referenced by luaL_newmetatable(), luaL_setmetatable(), and luaL_testudata().

#define luaL_loadbuffer (   L,
  s,
  sz,
  n 
)    luaL_loadbufferx(L,s,sz,n,NULL)

Definition at line 135 of file lauxlib.h.

Referenced by db_debug(), dostring(), loadline(), and luaL_loadstring().

#define luaL_loadfile (   L,
  f 
)    luaL_loadfilex(L,f,NULL)
#define luaL_newlib (   L,
  l 
)    (luaL_newlibtable(L,l), luaL_setfuncs(L,l,0))
#define luaL_newlibtable (   L,
  l 
)    lua_createtable(L, 0, sizeof(l)/sizeof((l)[0]) - 1)

Definition at line 109 of file lauxlib.h.

#define luaL_opt (   L,
  f,
  n,
  d 
)    (lua_isnoneornil(L,(n)) ? (d) : f(L,(n)))

Definition at line 133 of file lauxlib.h.

Referenced by luaL_optinteger(), luaL_optnumber(), luaL_optunsigned(), os_date(), tconcat(), and unpack().

#define luaL_optint (   L,
  n,
  d 
)    (static_cast<int>(luaL_optinteger(L, (n), (d))))
#define luaL_optlong (   L,
  n,
  d 
)    (static_cast<long>(luaL_optinteger(L, (n), (d))))

Definition at line 121 of file lauxlib.h.

#define luaL_optstring (   L,
  n,
  d 
)    (luaL_optlstring(L, (n), (d), NULL))
#define luaL_prepbuffer (   B  )     luaL_prepbuffsize(B, LUAL_BUFFERSIZE)

Definition at line 168 of file lauxlib.h.

Referenced by read_line().

#define luaL_register (   L,
  n,
  l 
)    (luaL_openlib(L,(n),(l),0))

Definition at line 206 of file lauxlib.h.

Referenced by LuaKernel::LuaKernel().

#define luaL_typename (   L,
  i 
)    lua_typename(L, lua_type(L,(i)))

Definition at line 123 of file lauxlib.h.

Referenced by add_value(), addfield(), luaB_type(), luaL_tolstring(), and typeerror().


Typedef Documentation

typedef struct luaL_Buffer luaL_Buffer
typedef struct luaL_Reg luaL_Reg
typedef struct luaL_Stream luaL_Stream

Function Documentation

LUALIB_API void() luaL_addlstring ( luaL_Buffer B,
const char *  s,
size_t  l 
)

Definition at line 461 of file lauxlib.c.

References luaL_addsize, and luaL_prepbuffsize().

Referenced by add_s(), luaL_addstring(), luaL_addvalue(), luaL_gsub(), os_date(), str_gsub(), tconcat(), and writer().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void() luaL_addstring ( luaL_Buffer B,
const char *  s 
)

Definition at line 468 of file lauxlib.c.

References luaL_addlstring().

Referenced by addquoted(), and luaL_gsub().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void() luaL_addvalue ( luaL_Buffer B  ) 

Definition at line 487 of file lauxlib.c.

References buffonstack, luaL_Buffer::L, lua_insert(), lua_remove(), lua_tolstring(), and luaL_addlstring().

Referenced by add_s(), add_value(), addfield(), findloader(), searchpath(), and str_format().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API int() luaL_argerror ( lua_State L,
int  numarg,
const char *  extramsg 
)
LUALIB_API void() luaL_buffinit ( lua_State L,
luaL_Buffer B 
)
LUALIB_API char*() luaL_buffinitsize ( lua_State L,
luaL_Buffer B,
size_t  sz 
)

Definition at line 506 of file lauxlib.c.

References luaL_buffinit(), and luaL_prepbuffsize().

Referenced by str_char(), str_lower(), str_rep(), str_reverse(), and str_upper().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API int() luaL_callmeta ( lua_State L,
int  obj,
const char *  e 
)

Definition at line 715 of file lauxlib.c.

References lua_absindex(), lua_call, lua_pushvalue(), and luaL_getmetafield().

Referenced by luaL_tolstring(), and traceback().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void() luaL_checkany ( lua_State L,
int  narg 
)

Definition at line 353 of file lauxlib.c.

References LUA_TNONE, lua_type(), and luaL_argerror().

Referenced by db_getmetatable(), db_setlocal(), db_setupvalue(), io_type(), luaB_getmetatable(), luaB_pcall(), luaB_rawequal(), luaB_rawget(), luaB_rawset(), luaB_tonumber(), luaB_tostring(), and luaB_type().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API lua_Integer() luaL_checkinteger ( lua_State L,
int  numArg 
)
LUALIB_API const char*() luaL_checklstring ( lua_State L,
int  numArg,
size_t *  l 
)

Definition at line 359 of file lauxlib.c.

References lua_tolstring(), LUA_TSTRING, and tag_error().

Referenced by addquoted(), g_write(), intf_textdomain(), luaB_tonumber(), luaL_optlstring(), str_byte(), str_find_aux(), str_format(), str_gsub(), str_len(), str_lower(), str_rep(), str_reverse(), str_sub(), and str_upper().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API lua_Number() luaL_checknumber ( lua_State L,
int  numArg 
)
LUALIB_API int() luaL_checkoption ( lua_State L,
int  narg,
const char *  def,
const char *const   lst[] 
)

Definition at line 322 of file lauxlib.c.

References lua_pushfstring(), LUA_QS, luaL_argerror(), luaL_checkstring, and luaL_optstring.

Referenced by f_seek(), f_setvbuf(), luaB_collectgarbage(), and os_setlocale().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void() luaL_checkstack ( lua_State L,
int  sz,
const char *  msg 
)

Definition at line 335 of file lauxlib.c.

References lua_checkstack(), and luaL_error().

Referenced by dotty(), g_read(), generic_reader(), getargs(), luaL_setfuncs(), push_captures(), sort(), and str_byte().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void() luaL_checktype ( lua_State L,
int  narg,
int  t 
)

Definition at line 347 of file lauxlib.c.

References lua_type(), and tag_error().

Referenced by auxupvalue(), checkupval(), db_sethook(), db_setuservalue(), ipairsaux(), ll_seeall(), luaB_cocreate(), luaB_load(), luaB_next(), luaB_rawget(), luaB_rawset(), luaB_setmetatable(), maxn(), os_time(), pairsmeta(), sort(), str_dump(), tconcat(), and unpack().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void*() luaL_checkudata ( lua_State L,
int  ud,
const char *  tname 
)

Definition at line 307 of file lauxlib.c.

References luaL_testudata(), and typeerror().

Referenced by gctm().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API lua_Unsigned() luaL_checkunsigned ( lua_State L,
int  numArg 
)

Definition at line 400 of file lauxlib.c.

References LUA_TNUMBER, lua_tounsignedx(), and tag_error().

Referenced by andaux(), b_arshift(), b_extract(), b_lshift(), b_not(), b_or(), b_replace(), b_rot(), b_rshift(), b_xor(), luaL_optunsigned(), and math_randomseed().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void() luaL_checkversion_ ( lua_State L,
lua_Number  ver 
)

Definition at line 945 of file lauxlib.c.

References lua_pop, lua_pushnumber(), lua_tointeger, lua_tounsigned, lua_version(), and luaL_error().

Here is the call graph for this function:

LUALIB_API int() luaL_error ( lua_State L,
const char *  fmt,
  ... 
)
LUALIB_API int() luaL_execresult ( lua_State L,
int  stat 
)

Definition at line 249 of file lauxlib.c.

References inspectstat, lua_pushboolean(), lua_pushinteger(), lua_pushnil(), lua_pushstring(), and luaL_fileresult().

Referenced by io_pclose(), and os_execute().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API int() luaL_fileresult ( lua_State L,
int  stat,
const char *  fname 
)

Definition at line 209 of file lauxlib.c.

References lua_pushboolean(), lua_pushfstring(), lua_pushinteger(), and lua_pushnil().

Referenced by f_flush(), f_seek(), f_setvbuf(), g_read(), g_write(), io_fclose(), io_flush(), io_open(), io_popen(), io_tmpfile(), luaL_execresult(), os_remove(), and os_rename().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API int() luaL_getmetafield ( lua_State L,
int  obj,
const char *  e 
)

Definition at line 699 of file lauxlib.c.

References lua_getmetatable(), lua_isnil, lua_pop, lua_pushstring(), lua_rawget(), and lua_remove().

Referenced by luaB_getmetatable(), luaB_setmetatable(), luaL_callmeta(), and pairsmeta().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API int() luaL_getsubtable ( lua_State L,
int  idx,
const char *  fname 
)

Definition at line 865 of file lauxlib.c.

References lua_absindex(), lua_getfield(), lua_istable, lua_newtable, lua_pop, lua_pushvalue(), and lua_setfield().

Referenced by luaL_openlibs(), luaL_requiref(), and luaopen_package().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API const char*() luaL_gsub ( lua_State L,
const char *  s,
const char *  p,
const char *  r 
)

Definition at line 903 of file lauxlib.c.

References lua_tostring, luaL_addlstring(), luaL_addstring(), luaL_buffinit(), and luaL_pushresult().

Referenced by loadfunc(), searchpath(), and setpath().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API int() luaL_len ( lua_State L,
int  idx 
)

Definition at line 725 of file lauxlib.c.

References lua_len(), lua_pop, lua_tointegerx(), and luaL_error().

Referenced by tconcat(), and unpack().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API int() luaL_loadbufferx ( lua_State L,
const char *  buff,
size_t  sz,
const char *  name,
const char *  mode 
)

Definition at line 682 of file lauxlib.c.

References getS(), lua_load(), LoadS::s, and LoadS::size.

Referenced by luaB_load().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API int() luaL_loadfilex ( lua_State L,
const char *  filename,
const char *  mode 
)

Definition at line 630 of file lauxlib.c.

References LoadF::buff, errfile(), LoadF::f, getF(), lua_gettop(), lua_load(), lua_pushfstring(), lua_pushliteral, lua_remove(), lua_settop(), LUA_SIGNATURE, lua_tostring, LoadF::n, and skipcomment().

Referenced by luaB_loadfile().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API int() luaL_loadstring ( lua_State L,
const char *  s 
)

Definition at line 691 of file lauxlib.c.

References luaL_loadbuffer.

Referenced by ai::lua_ai_action_handler::create(), ai::lua_ai_context::create(), and LuaKernel::execute().

Here is the caller graph for this function:

LUALIB_API int() luaL_newmetatable ( lua_State L,
const char *  tname 
)

Definition at line 274 of file lauxlib.c.

References lua_isnil, lua_newtable, lua_pop, lua_pushvalue(), LUA_REGISTRYINDEX, lua_setfield(), and luaL_getmetatable.

Referenced by createmeta(), and luaopen_package().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API lua_State*() luaL_newstate ( void   ) 

Definition at line 938 of file lauxlib.c.

References l_alloc(), lua_atpanic(), lua_newstate(), and panic().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void() luaL_openlib ( lua_State L,
const char *  libname,
const luaL_Reg l,
int  nup 
)

Definition at line 827 of file lauxlib.c.

References libsize(), lua_insert(), lua_pop, luaL_checkversion, luaL_pushmodule(), and luaL_setfuncs().

Here is the call graph for this function:

LUALIB_API lua_Integer() luaL_optinteger ( lua_State L,
int  nArg,
lua_Integer  def 
)

Definition at line 409 of file lauxlib.c.

References luaL_checkinteger(), and luaL_opt.

Referenced by f_setvbuf(), str_byte(), str_find_aux(), str_gsub(), and str_sub().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API const char*() luaL_optlstring ( lua_State L,
int  numArg,
const char *  def,
size_t *  l 
)

Definition at line 366 of file lauxlib.c.

References lua_isnoneornil, and luaL_checklstring().

Referenced by str_rep(), and tconcat().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API lua_Number() luaL_optnumber ( lua_State L,
int  nArg,
lua_Number  def 
)

Definition at line 386 of file lauxlib.c.

References luaL_checknumber(), and luaL_opt.

Referenced by f_seek(), and os_difftime().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API lua_Unsigned() luaL_optunsigned ( lua_State L,
int  numArg,
lua_Unsigned  def 
)

Definition at line 415 of file lauxlib.c.

References luaL_checkunsigned(), and luaL_opt.

Here is the call graph for this function:

LUALIB_API char*() luaL_prepbuffsize ( luaL_Buffer B,
size_t  sz 
)

Definition at line 439 of file lauxlib.c.

References luaL_Buffer::b, buffonstack, luaL_Buffer::L, lua_newuserdata(), lua_remove(), luaL_error(), luaL_Buffer::n, and luaL_Buffer::size.

Referenced by luaL_addlstring(), luaL_buffinitsize(), read_all(), read_chars(), and str_format().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void() luaL_pushmodule ( lua_State L,
const char *  modname,
int  sizehint 
)

Definition at line 810 of file lauxlib.c.

References lua_getfield(), lua_istable, lua_pop, lua_pushglobaltable, lua_pushvalue(), LUA_QS, LUA_REGISTRYINDEX, lua_remove(), lua_setfield(), luaL_error(), and luaL_findtable().

Referenced by ll_module(), and luaL_openlib().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void() luaL_pushresult ( luaL_Buffer B  ) 

Definition at line 473 of file lauxlib.c.

References luaL_Buffer::b, buffonstack, luaL_Buffer::L, lua_pushlstring(), lua_remove(), and luaL_Buffer::n.

Referenced by findloader(), luaL_gsub(), luaL_pushresultsize(), os_date(), read_all(), read_chars(), read_line(), searchpath(), str_dump(), str_format(), str_gsub(), and tconcat().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void() luaL_pushresultsize ( luaL_Buffer B,
size_t  sz 
)

Definition at line 481 of file lauxlib.c.

References luaL_addsize, and luaL_pushresult().

Referenced by str_char(), str_lower(), str_rep(), str_reverse(), and str_upper().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API int() luaL_ref ( lua_State L,
int  t 
)

Definition at line 524 of file lauxlib.c.

References freelist, lua_absindex(), lua_isnil, lua_pop, lua_rawgeti(), lua_rawlen(), lua_rawseti(), and lua_tointeger.

Here is the call graph for this function:

LUALIB_API void() luaL_requiref ( lua_State L,
const char *  modname,
lua_CFunction  openf,
int  glb 
)

Definition at line 885 of file lauxlib.c.

References lua_call, lua_pop, lua_pushcfunction, lua_pushglobaltable, lua_pushstring(), lua_pushvalue(), LUA_REGISTRYINDEX, lua_setfield(), and luaL_getsubtable().

Referenced by LuaKernel::LuaKernel(), and luaL_openlibs().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void() luaL_setfuncs ( lua_State L,
const luaL_Reg l,
int  nup 
)

Definition at line 848 of file lauxlib.c.

References luaL_Reg::func, lua_pop, lua_pushcclosure(), lua_pushvalue(), lua_setfield(), luaL_checkstack(), and luaL_Reg::name.

Referenced by createmeta(), luaL_openlib(), luaopen_base(), and luaopen_package().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void() luaL_setmetatable ( lua_State L,
const char *  tname 
)

Definition at line 286 of file lauxlib.c.

References lua_setmetatable(), and luaL_getmetatable.

Referenced by ll_register(), and newprefile().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void*() luaL_testudata ( lua_State L,
int  ud,
const char *  tname 
)

Definition at line 292 of file lauxlib.c.

References lua_getmetatable(), lua_pop, lua_rawequal(), lua_touserdata(), and luaL_getmetatable.

Referenced by io_type(), and luaL_checkudata().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API const char*() luaL_tolstring ( lua_State L,
int  idx,
size_t *  len 
)

Definition at line 737 of file lauxlib.c.

References lua_pushfstring(), lua_pushliteral, lua_pushstring(), lua_pushvalue(), LUA_TBOOLEAN, LUA_TNIL, LUA_TNUMBER, lua_toboolean(), lua_tolstring(), lua_topointer(), LUA_TSTRING, lua_type(), luaL_callmeta(), and luaL_typename.

Referenced by luaB_tostring(), and str_format().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API void() luaL_traceback ( lua_State L,
lua_State L1,
const char *  msg,
int  level 
)

Definition at line 116 of file lauxlib.c.

References countlevels(), lua_Debug::currentline, lua_Debug::istailcall, LEVELS1, lua_concat(), lua_getinfo(), lua_getstack(), lua_gettop(), lua_pushfstring(), lua_pushliteral, pushfuncname(), and lua_Debug::short_src.

Referenced by db_traceback(), and traceback().

Here is the call graph for this function:

Here is the caller graph for this function:

LUALIB_API int() luaL_typerror ( lua_State L,
int  narg,
const char *  tname 
)
LUALIB_API void() luaL_unref ( lua_State L,
int  t,
int  ref 
)

Definition at line 545 of file lauxlib.c.

References freelist, lua_absindex(), lua_pushinteger(), lua_rawgeti(), and lua_rawseti().

Here is the call graph for this function:

LUALIB_API void() luaL_where ( lua_State L,
int  lvl 
)

Definition at line 185 of file lauxlib.c.

References lua_Debug::currentline, lua_getinfo(), lua_getstack(), lua_pushfstring(), lua_pushliteral, and lua_Debug::short_src.

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

Here is the call graph for this function:

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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