The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Macros | Typedefs | Functions
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
 

Macros

#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)
 

Macro Definition Documentation

#define LUA_ERRFILE   (LUA_ERRERR+1)

Definition at line 19 of file lauxlib.h.

Referenced by errfile().

#define LUA_FILEHANDLE   "FILE*"

Definition at line 185 of file lauxlib.h.

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

#define LUA_NOREF   (-2)

Definition at line 69 of file lauxlib.h.

#define LUA_REFNIL   (-1)

Definition at line 70 of file lauxlib.h.

Referenced by ai::unit_advancements_aspect::get_advancements(), and luaL_ref().

#define luaL_addchar (   B,
  c 
)
Value:
((void)((B)->n < (B)->size || luaL_prepbuffsize((B), 1)), \
((B)->b[(B)->n++] = (c)))
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1806
GLdouble GLdouble GLdouble b
Definition: glew.h:6966
LUALIB_API char *() luaL_prepbuffsize(luaL_Buffer *B, size_t sz)
Definition: lauxlib.cpp:439
GLsizeiptr size
Definition: glew.h:1649
#define c
Definition: glew.h:12743

Definition at line 152 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 119 of file lauxlib.h.

#define luaL_checkstring (   L,
  n 
)    (luaL_checklstring(L, (n), NULL))

Definition at line 115 of file lauxlib.h.

Referenced by ai::ai_recall(), ai::ai_recruit(), ai::ai_synced_command(), db_sethook(), find_widget(), gmatch(), ai::impl_ai_aspect_get(), game_lua_kernel::impl_current_get(), game_lua_kernel::impl_game_config_get(), game_lua_kernel::impl_game_config_set(), lua_common::impl_gettext(), impl_race_get(), lua_rng::impl_rng_seed(), impl_side_get(), impl_side_set(), game_lua_kernel::impl_theme_items_get(), game_lua_kernel::impl_theme_items_set(), impl_unit_attack_get(), impl_unit_attack_set(), impl_unit_attacks_get(), impl_unit_get(), impl_unit_set(), impl_unit_status_get(), impl_unit_status_set(), impl_unit_type_get(), impl_unit_variables_get(), impl_unit_variables_set(), lua_common::impl_vconfig_get(), lua_gui2::intf_add_dialog_tree_node(), intf_add_known_unit(), intf_add_modification(), game_lua_kernel::intf_clear_menu_item(), intf_compare_versions(), lua_formula_bridge::intf_eval_formula(), game_lua_kernel::intf_fire_event(), game_lua_kernel::intf_fire_wml_menu_item(), game_lua_kernel::intf_float_label(), lua_map_location::intf_get_direction(), intf_get_era(), intf_get_image_size(), game_lua_kernel::intf_get_side_variable(), game_lua_kernel::intf_get_sound_source(), game_lua_kernel::intf_get_terrain_info(), game_lua_kernel::intf_get_unit(), game_lua_kernel::intf_get_variable(), lua_fileops::intf_have_file(), game_lua_kernel::intf_log(), intf_name_generator(), game_lua_kernel::intf_open_help(), lua_map_location::intf_parse_direction(), game_lua_kernel::intf_play_sound(), lua_fileops::intf_read_file(), game_lua_kernel::intf_remove_event(), game_lua_kernel::intf_remove_sound_source(), game_lua_kernel::intf_remove_time_area(), lua_kernel_base::intf_require(), game_lua_kernel::intf_set_menu_item(), game_lua_kernel::intf_set_next_scenario(), game_lua_kernel::intf_set_side_variable(), game_lua_kernel::intf_set_terrain(), game_lua_kernel::intf_set_time_of_day(), game_lua_kernel::intf_set_variable(), intf_transform_unit(), intf_unit_ability(), intf_unit_defense(), intf_unit_jamming_cost(), intf_unit_movement_cost(), intf_unit_resistance(), intf_unit_vision_cost(), io_lines(), io_open(), io_popen(), ll_loadlib(), ll_module(), ll_require(), ll_searchpath(), lua_fileops::load_file(), lua_check_impl::lua_check(), luaL_checkoption(), os_getenv(), os_remove(), os_rename(), searcher_C(), searcher_Croot(), searcher_Lua(), searcher_preload(), lua_gui2::show_popup_dialog(), special_locations_index(), and special_locations_next().

#define luaL_checkversion (   L)    luaL_checkversion_(L, LUA_VERSION_NUM)

Definition at line 29 of file lauxlib.h.

Referenced by luaL_openlib(), luaL_setfuncs(), pmain(), and lua_cpp::set_functions().

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

Definition at line 124 of file lauxlib.h.

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

Definition at line 127 of file lauxlib.h.

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

Definition at line 134 of file lauxlib.h.

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

#define luaL_loadfile (   L,
  f 
)    luaL_loadfilex(L,f,NULL)

Definition at line 78 of file lauxlib.h.

Referenced by dofile(), handle_script(), luaB_dofile(), pmain(), and searcher_Lua().

#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 108 of file lauxlib.h.

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

Definition at line 132 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 120 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 167 of file lauxlib.h.

Referenced by read_line().

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

Definition at line 205 of file lauxlib.h.

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

Definition at line 122 of file lauxlib.h.

Referenced by add_value(), addfield(), intf_find_path(), 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 
)
LUALIB_API void() luaL_addstring ( luaL_Buffer B,
const char *  s 
)

Definition at line 468 of file lauxlib.cpp.

References luaL_addlstring().

Referenced by addquoted(), and luaL_gsub().

LUALIB_API void() luaL_addvalue ( luaL_Buffer B)
LUALIB_API int() luaL_argerror ( lua_State L,
int  numarg,
const char *  extramsg 
)

Definition at line 152 of file lauxlib.cpp.

References lua_getinfo(), lua_getstack(), LUA_QS, lua_tostring, luaL_error(), lua_Debug::name, lua_Debug::namewhat, and pushglobalfuncname().

Referenced by ai::cfun_ai_get_suitable_keep(), checkoption(), db_getinfo(), db_getlocal(), db_setlocal(), db_setuservalue(), find_widget(), g_read(), impl_context_accessor(), game_lua_kernel::impl_game_config_set(), impl_race_get(), impl_side_set(), impl_unit_attack_get(), impl_unit_attack_set(), impl_unit_attacks_get(), impl_unit_attacks_len(), impl_unit_get(), impl_unit_set(), impl_unit_status_get(), impl_unit_status_set(), impl_unit_type_get(), impl_unit_variables_get(), impl_unit_variables_set(), lua_gui2::intf_add_dialog_tree_node(), intf_add_known_unit(), intf_add_modification(), intf_compare_versions(), game_lua_kernel::intf_erase_unit(), game_lua_kernel::intf_extract_unit(), game_lua_kernel::intf_find_cost_map(), intf_find_path(), game_lua_kernel::intf_find_path(), game_lua_kernel::intf_find_reach(), lua_map_location::intf_get_adjacent_tiles(), lua_gui2::intf_get_dialog_value(), lua_map_location::intf_get_direction(), lua_map_location::intf_get_in_basis_N_NE(), game_lua_kernel::intf_get_side_variable(), game_lua_kernel::intf_get_starting_location(), game_lua_kernel::intf_get_time_of_day(), game_lua_kernel::intf_get_unit(), game_lua_kernel::intf_highlight_hex(), game_lua_kernel::intf_match_unit(), intf_name_generator(), lua_map_location::intf_parse_direction(), game_lua_kernel::intf_put_recall_unit(), game_lua_kernel::intf_put_unit(), intf_random(), game_lua_kernel::intf_random(), lua_fileops::intf_read_file(), lua_gui2::intf_remove_dialog_item(), lua_kernel_base::intf_require(), game_lua_kernel::intf_select_unit(), lua_gui2::intf_set_dialog_active(), lua_gui2::intf_set_dialog_callback(), lua_gui2::intf_set_dialog_canvas(), lua_gui2::intf_set_dialog_markup(), lua_gui2::intf_set_dialog_value(), lua_gui2::intf_set_dialog_visible(), game_lua_kernel::intf_set_side_variable(), game_lua_kernel::intf_set_time_of_day(), game_lua_kernel::intf_set_variable(), game_lua_kernel::intf_simulate_combat(), intf_synchronize_choice(), intf_synchronize_choices(), intf_transform_unit(), lua_map_location::intf_vector_negation(), lua_map_location::intf_write_direction(), load_fake_units(), lua_fileops::load_file(), lua_check_impl::lua_check(), luaL_checkany(), luaL_checkoption(), game_lua_kernel::run_wml_conditional(), lua_gui2::show_message_dialog(), str_format(), and typeerror().

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.cpp.

References luaL_buffinit(), and luaL_prepbuffsize().

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

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

Definition at line 717 of file lauxlib.cpp.

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

Referenced by luaL_tolstring(), and traceback().

LUALIB_API void() luaL_checkany ( lua_State L,
int  narg 
)
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 
)
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[] 
)
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_checkudata ( lua_State L,
int  ud,
const char *  tname 
)
LUALIB_API lua_Unsigned() luaL_checkunsigned ( lua_State L,
int  numArg 
)
LUALIB_API void() luaL_checkversion_ ( lua_State L,
lua_Number  ver 
)
LUALIB_API int() luaL_error ( lua_State L,
const char *  fmt,
  ... 
)
LUALIB_API int() luaL_execresult ( lua_State L,
int  stat 
)
LUALIB_API int() luaL_fileresult ( lua_State L,
int  stat,
const char *  fname 
)
LUALIB_API int() luaL_getmetafield ( lua_State L,
int  obj,
const char *  e 
)
LUALIB_API int() luaL_getsubtable ( lua_State L,
int  idx,
const char *  fname 
)
LUALIB_API const char*() luaL_gsub ( lua_State L,
const char *  s,
const char *  p,
const char *  r 
)
LUALIB_API int() luaL_len ( lua_State L,
int  idx 
)

Definition at line 727 of file lauxlib.cpp.

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

Referenced by gctm(), ll_addtoclib(), tconcat(), and unpack().

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

Definition at line 684 of file lauxlib.cpp.

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

Referenced by luaB_load().

LUALIB_API int() luaL_loadfilex ( lua_State L,
const char *  filename,
const char *  mode 
)
LUALIB_API int() luaL_loadstring ( lua_State L,
const char *  s 
)
LUALIB_API int() luaL_newmetatable ( lua_State L,
const char *  tname 
)
LUALIB_API lua_State*() luaL_newstate ( void  )

Definition at line 939 of file lauxlib.cpp.

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

Referenced by main().

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

Definition at line 409 of file lauxlib.cpp.

References luaL_checkinteger(), and luaL_opt.

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

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

Definition at line 366 of file lauxlib.cpp.

References lua_isnoneornil, and luaL_checklstring().

Referenced by str_rep(), and tconcat().

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

Definition at line 386 of file lauxlib.cpp.

References luaL_checknumber(), and luaL_opt.

Referenced by f_seek(), and os_difftime().

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

Definition at line 415 of file lauxlib.cpp.

References luaL_checkunsigned(), and luaL_opt.

LUALIB_API char*() luaL_prepbuffsize ( luaL_Buffer B,
size_t  sz 
)
LUALIB_API void() luaL_pushmodule ( lua_State L,
const char *  modname,
int  sizehint 
)
LUALIB_API void() luaL_pushresult ( luaL_Buffer B)
LUALIB_API void() luaL_pushresultsize ( luaL_Buffer B,
size_t  sz 
)

Definition at line 481 of file lauxlib.cpp.

References luaL_addsize, and luaL_pushresult().

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

LUALIB_API int() luaL_ref ( lua_State L,
int  t 
)
LUALIB_API void() luaL_requiref ( lua_State L,
const char *  modname,
lua_CFunction  openf,
int  glb 
)
LUALIB_API void() luaL_setfuncs ( lua_State L,
const luaL_Reg l,
int  nup 
)
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 const char*() luaL_tolstring ( lua_State L,
int  idx,
size_t *  len 
)
LUALIB_API void() luaL_traceback ( lua_State L,
lua_State L1,
const char *  msg,
int  level 
)
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 
)
LUALIB_API void() luaL_where ( lua_State L,
int  lvl 
)