The Battle for Wesnoth  1.15.12+dev
Classes | Macros | Typedefs | Functions | Variables
lauxlib.cpp File Reference
#include "lprefix.h"
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
Include dependency graph for lauxlib.cpp:

Go to the source code of this file.

Classes

struct  UBox
 
struct  LoadF
 
struct  LoadS
 

Macros

#define lauxlib_c
 
#define LUA_LIB
 
#define MAX_SIZET   ((size_t)(~(size_t)0))
 
#define LEVELS1   10 /* size of the first part of the stack */
 
#define LEVELS2   11 /* size of the second part of the stack */
 
#define l_inspectstat(stat, what)   /* no op */
 
#define buffonstack(B)   ((B)->b != (B)->init.b)
 
#define freelist   0
 

Typedefs

typedef struct UBox UBox
 
typedef struct LoadF LoadF
 
typedef struct LoadS LoadS
 

Functions

static int findfield (lua_State *L, int objidx, int level)
 
static int pushglobalfuncname (lua_State *L, lua_Debug *ar)
 
static void pushfuncname (lua_State *L, lua_Debug *ar)
 
static int lastlevel (lua_State *L)
 
LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1, const char *msg, int level)
 
LUALIB_API int luaL_argerror (lua_State *L, int arg, const char *extramsg)
 
int luaL_typeerror (lua_State *L, int arg, const char *tname)
 
static void tag_error (lua_State *L, int arg, int tag)
 
LUALIB_API void luaL_where (lua_State *L, int level)
 
LUALIB_API int luaL_error (lua_State *L, const char *fmt,...)
 
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_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 int luaL_checkoption (lua_State *L, int arg, const char *def, const char *const lst[])
 
LUALIB_API void luaL_checkstack (lua_State *L, int space, const char *msg)
 
LUALIB_API void luaL_checktype (lua_State *L, int arg, int t)
 
LUALIB_API void luaL_checkany (lua_State *L, int arg)
 
LUALIB_API const char * luaL_checklstring (lua_State *L, int arg, size_t *len)
 
LUALIB_API const char * luaL_optlstring (lua_State *L, int arg, const char *def, size_t *len)
 
LUALIB_API lua_Number luaL_checknumber (lua_State *L, int arg)
 
LUALIB_API lua_Number luaL_optnumber (lua_State *L, int arg, lua_Number def)
 
static void interror (lua_State *L, int arg)
 
LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int arg)
 
LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int arg, lua_Integer def)
 
static void * resizebox (lua_State *L, int idx, size_t newsize)
 
static int boxgc (lua_State *L)
 
static void newbox (lua_State *L)
 
static size_t newbuffsize (luaL_Buffer *B, size_t sz)
 
static char * prepbuffsize (luaL_Buffer *B, size_t sz, int boxidx)
 
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_pushresult (luaL_Buffer *B)
 
LUALIB_API void luaL_pushresultsize (luaL_Buffer *B, size_t sz)
 
LUALIB_API void luaL_addvalue (luaL_Buffer *B)
 
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)
 
LUALIB_API int luaL_ref (lua_State *L, int t)
 
LUALIB_API void luaL_unref (lua_State *L, int t, int ref)
 
static const char * getF (lua_State *L, void *ud, size_t *size)
 
static int errfile (lua_State *L, const char *what, int fnameindex)
 
static int skipBOM (LoadF *lf)
 
static int skipcomment (LoadF *lf, int *cp)
 
LUALIB_API int luaL_loadfilex (lua_State *L, const char *filename, const char *mode)
 
static const char * getS (lua_State *L, void *ud, size_t *size)
 
LUALIB_API int luaL_loadbufferx (lua_State *L, const char *buff, size_t size, const char *name, const char *mode)
 
LUALIB_API int luaL_loadstring (lua_State *L, const char *s)
 
LUALIB_API int luaL_getmetafield (lua_State *L, int obj, const char *event)
 
LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event)
 
LUALIB_API lua_Integer luaL_len (lua_State *L, int idx)
 
LUALIB_API const char * luaL_tolstring (lua_State *L, int idx, size_t *len)
 
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_requiref (lua_State *L, const char *modname, lua_CFunction openf, int glb)
 
LUALIB_API void luaL_addgsub (luaL_Buffer *b, const char *s, const char *p, const char *r)
 
LUALIB_API const char * luaL_gsub (lua_State *L, const char *s, const char *p, const char *r)
 
static void * l_alloc (void *ud, void *ptr, size_t osize, size_t nsize)
 
static int panic (lua_State *L)
 
static void warnfoff (void *ud, const char *message, int tocont)
 
static void warnfon (void *ud, const char *message, int tocont)
 
static void warnfcont (void *ud, const char *message, int tocont)
 
static int checkcontrol (lua_State *L, const char *message, int tocont)
 
LUALIB_API lua_StateluaL_newstate (void)
 
LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver, size_t sz)
 

Variables

static const luaL_Reg boxmt []
 

Macro Definition Documentation

◆ buffonstack

#define buffonstack (   B)    ((B)->b != (B)->init.b)

Definition at line 515 of file lauxlib.cpp.

Referenced by luaL_pushresult(), and prepbuffsize().

◆ freelist

#define freelist   0

Definition at line 643 of file lauxlib.cpp.

Referenced by luaL_ref(), and luaL_unref().

◆ l_inspectstat

#define l_inspectstat (   stat,
  what 
)    /* no op */

Definition at line 278 of file lauxlib.cpp.

Referenced by luaL_execresult().

◆ lauxlib_c

#define lauxlib_c

Definition at line 7 of file lauxlib.cpp.

◆ LEVELS1

#define LEVELS1   10 /* size of the first part of the stack */

Definition at line 43 of file lauxlib.cpp.

Referenced by luaL_traceback().

◆ LEVELS2

#define LEVELS2   11 /* size of the second part of the stack */

Definition at line 44 of file lauxlib.cpp.

Referenced by luaL_traceback().

◆ LUA_LIB

#define LUA_LIB

Definition at line 8 of file lauxlib.cpp.

◆ MAX_SIZET

#define MAX_SIZET   ((size_t)(~(size_t)0))

Definition at line 32 of file lauxlib.cpp.

Referenced by newbuffsize().

Typedef Documentation

◆ LoadF

typedef struct LoadF LoadF

◆ LoadS

typedef struct LoadS LoadS

◆ UBox

typedef struct UBox UBox

Function Documentation

◆ boxgc()

static int boxgc ( lua_State L)
static

Definition at line 488 of file lauxlib.cpp.

References resizebox().

◆ checkcontrol()

static int checkcontrol ( lua_State L,
const char *  message,
int  tocont 
)
static

Definition at line 1023 of file lauxlib.cpp.

References lua_setwarnf(), warnfoff(), and warnfon().

Referenced by warnfoff(), and warnfon().

◆ errfile()

static int errfile ( lua_State L,
const char *  what,
int  fnameindex 
)
static

Definition at line 711 of file lauxlib.cpp.

References LUA_ERRFILE, lua_pushfstring(), lua_remove, and lua_tostring.

Referenced by luaL_loadfilex().

◆ findfield()

static int findfield ( lua_State L,
int  objidx,
int  level 
)
static

◆ getF()

static const char* getF ( lua_State L,
void *  ud,
size_t *  size 
)
static

Definition at line 693 of file lauxlib.cpp.

References LoadF::buff, LoadF::f, and LoadF::n.

Referenced by luaL_loadfilex().

◆ getS()

static const char* getS ( lua_State L,
void *  ud,
size_t *  size 
)
static

Definition at line 796 of file lauxlib.cpp.

References LoadS::s, and LoadS::size.

Referenced by luaL_loadbufferx().

◆ interror()

static void interror ( lua_State L,
int  arg 
)
static

Definition at line 434 of file lauxlib.cpp.

References lua_isnumber(), LUA_TNUMBER, luaL_argerror(), and tag_error().

Referenced by luaL_checkinteger().

◆ l_alloc()

static void* l_alloc ( void *  ud,
void *  ptr,
size_t  osize,
size_t  nsize 
)
static

Definition at line 988 of file lauxlib.cpp.

Referenced by luaL_newstate().

◆ lastlevel()

static int lastlevel ( lua_State L)
static

Definition at line 116 of file lauxlib.cpp.

References lua_getstack().

Referenced by luaL_traceback().

◆ luaL_addgsub()

LUALIB_API void luaL_addgsub ( luaL_Buffer b,
const char *  s,
const char *  p,
const char *  r 
)

Definition at line 965 of file lauxlib.cpp.

References luaL_addlstring(), and luaL_addstring().

Referenced by luaL_gsub(), pusherrornotfound(), and searchpath().

◆ luaL_addlstring()

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

◆ luaL_addstring()

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

◆ luaL_addvalue()

LUALIB_API void luaL_addvalue ( luaL_Buffer B)

◆ luaL_argerror()

LUALIB_API int luaL_argerror ( lua_State L,
int  arg,
const char *  extramsg 
)

Definition at line 175 of file lauxlib.cpp.

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

Referenced by addliteral(), ai::cfun_ai_get_suitable_keep(), checkoption(), db_getinfo(), db_getlocal(), db_setlocal(), g_read(), getdetails(), impl_add_animation(), impl_color_set(), impl_context_accessor(), lua_kernel_base::impl_game_config_set(), impl_music_set(), impl_terrainfilter_set(), impl_terrainmap_set(), impl_unit_attack_get(), impl_unit_attack_match(), impl_unit_attack_set(), impl_unit_attacks_get(), impl_unit_attacks_len(), impl_unit_attacks_set(), impl_unit_set(), impl_unit_status_get(), impl_unit_status_set(), impl_unit_variables_get(), impl_unit_variables_set(), lua_widget::impl_widget_get(), lua_widget::impl_widget_set(), interror(), intf_add_dialog_item(), intf_add_item_of_type(), intf_add_known_unit(), intf_add_modification(), lua_gui2::intf_add_widget_definition(), lua_fileops::intf_canonical_path(), intf_compare_versions(), intf_dialog_close(), game_lua_kernel::intf_end_turn(), game_lua_kernel::intf_erase_unit(), game_lua_kernel::intf_find_cost_map(), game_lua_kernel::intf_find_path(), intf_find_path(), game_lua_kernel::intf_find_reach(), game_lua_kernel::intf_find_vision_range(), lua_map_location::intf_get_adjacent_tiles(), lua_map_location::intf_get_direction(), game_lua_kernel::intf_get_fog_or_shroud(), lua_map_location::intf_get_in_basis_N_NE(), intf_get_resource(), lua_map_location::intf_get_tiles_in_radius(), game_lua_kernel::intf_get_time_of_day(), game_lua_kernel::intf_get_unit(), game_lua_kernel::intf_get_units(), game_lua_kernel::intf_highlight_hex(), intf_invoke_synced_command(), intf_load(), lua_wml::intf_load_wml(), game_lua_kernel::intf_log_replay(), game_lua_kernel::intf_match_unit(), intf_music_add(), intf_name_generator(), game_lua_kernel::intf_put_recall_unit(), game_lua_kernel::intf_put_unit(), intf_random(), lua_fileops::intf_read_file(), intf_remove_dialog_item(), intf_replace_if_failed(), lua_kernel_base::intf_require(), game_lua_kernel::intf_select_unit(), intf_set_dialog_callback(), intf_set_dialog_canvas(), game_lua_kernel::intf_set_time_of_day(), game_lua_kernel::intf_set_variable(), game_lua_kernel::intf_shroud_op(), game_lua_kernel::intf_simulate_combat(), intf_sound_volume(), intf_synchronize_choice(), intf_synchronize_choices(), intf_terrain_mask(), intf_terrainfilter_create(), intf_transform_unit(), lua_map_location::intf_vector_negation(), lua_wml::intf_wml_merge(), load_fake_units(), lua_fileops::load_file(), lua_check_impl::lua_check(), luaL_checkany(), luaL_checkoption(), luaL_typeerror(), luaW_checkrace(), luaW_checkweapon(), luaW_checkwidget(), luaW_checkwidget_ptr(), luaW_table_get_def(), luaW_table_set(), luaW_type_error(), read_rules_vector(), lua_gui2::show_message_dialog(), str_format(), unit_show_error(), and WIDGET_SETTER().

◆ luaL_buffinit()

LUALIB_API void luaL_buffinit ( lua_State L,
luaL_Buffer B 
)

◆ luaL_buffinitsize()

LUALIB_API char* luaL_buffinitsize ( lua_State L,
luaL_Buffer B,
size_t  sz 
)

Definition at line 628 of file lauxlib.cpp.

References luaL_buffinit(), and prepbuffsize().

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

◆ luaL_callmeta()

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

Definition at line 839 of file lauxlib.cpp.

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

Referenced by luaL_tolstring().

◆ luaL_checkany()

LUALIB_API void luaL_checkany ( lua_State L,
int  arg 
)

◆ luaL_checkinteger()

LUALIB_API lua_Integer luaL_checkinteger ( lua_State L,
int  arg 
)

Definition at line 442 of file lauxlib.cpp.

References d, interror(), and lua_tointegerx().

Referenced by auxupvalue(), byteoffset(), checkupval(), db_getinfo(), db_getlocal(), db_setcstacklimit(), db_setlocal(), g_read(), lua_common::impl_gettext(), impl_merge_terrain(), impl_replace_if_failed_tostring(), impl_unit_attacks_get(), impl_unit_attacks_set(), lua_common::impl_vconfig_ipairs_iter(), lua_widget::impl_widget_get(), intf_add_item_of_type(), intf_append_ai(), intf_debug_ai(), intf_default_generate(), intf_default_generate_height_map(), intf_delay(), game_lua_kernel::intf_delay(), intf_deprecated_message(), game_lua_kernel::intf_find_cost_map(), game_lua_kernel::intf_find_path(), intf_find_path(), game_lua_kernel::intf_find_reach(), lua_map_location::intf_get_direction(), game_lua_kernel::intf_get_label(), game_lua_kernel::intf_get_side(), lua_map_location::intf_get_tiles_in_radius(), game_lua_kernel::intf_get_time_of_day(), game_lua_kernel::intf_is_enemy(), game_lua_kernel::intf_match_side(), intf_mg_get_tiles_radius(), intf_modify_ai(), intf_music_remove(), intf_remove_dialog_item(), lua_map_location::intf_rotate_right_around_center(), game_lua_kernel::intf_scroll(), intf_set_dialog_canvas(), game_lua_kernel::intf_set_side_id(), game_lua_kernel::intf_set_village_owner(), game_lua_kernel::intf_shroud_op(), intf_switch_ai(), ipairsaux(), lua_check_impl::lua_check(), luaB_select(), luaB_tonumber(), luaL_optinteger(), math_random(), math_randomseed(), math_ult(), pushutfchar(), setrandfunc(), str_char(), str_format(), str_pack(), str_rep(), str_sub(), tinsert(), tmove(), and tunpack().

◆ luaL_checklstring()

LUALIB_API const char* luaL_checklstring ( lua_State L,
int  arg,
size_t *  len 
)

◆ luaL_checknumber()

LUALIB_API lua_Number luaL_checknumber ( lua_State L,
int  arg 
)

◆ luaL_checkoption()

LUALIB_API int luaL_checkoption ( lua_State L,
int  arg,
const char *  def,
const char *const  lst[] 
)

◆ luaL_checkstack()

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

◆ luaL_checktype()

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

◆ luaL_checkudata()

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

◆ luaL_checkversion_()

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

Definition at line 1075 of file lauxlib.cpp.

References lua_version(), LUAI_UACNUMBER, luaL_error(), and LUAL_NUMSIZES.

◆ luaL_error()

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

◆ luaL_execresult()

LUALIB_API int luaL_execresult ( lua_State L,
int  stat 
)

◆ luaL_fileresult()

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

◆ luaL_getmetafield()

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

◆ luaL_getsubtable()

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

◆ luaL_gsub()

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

Definition at line 978 of file lauxlib.cpp.

References b, lua_tostring, luaL_addgsub(), luaL_buffinit(), and luaL_pushresult().

Referenced by loadfunc(), and searchpath().

◆ luaL_len()

LUALIB_API lua_Integer luaL_len ( lua_State L,
int  idx 
)

Definition at line 849 of file lauxlib.cpp.

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

Referenced by addtoclib(), gctm(), lua_stringx::intf_str_join(), and tunpack().

◆ luaL_loadbufferx()

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

◆ luaL_loadfilex()

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

◆ luaL_loadstring()

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

◆ luaL_newmetatable()

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

◆ luaL_newstate()

LUALIB_API lua_State* luaL_newstate ( void  )

Definition at line 1065 of file lauxlib.cpp.

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

◆ luaL_optinteger()

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

◆ luaL_optlstring()

LUALIB_API const char* luaL_optlstring ( lua_State L,
int  arg,
const char *  def,
size_t *  len 
)

Definition at line 409 of file lauxlib.cpp.

References lua_isnoneornil, and luaL_checklstring().

Referenced by game_lua_kernel::intf_set_side_id(), os_date(), str_rep(), and tconcat().

◆ luaL_optnumber()

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

Definition at line 429 of file lauxlib.cpp.

References luaL_checknumber(), and luaL_opt.

Referenced by math_atan().

◆ luaL_prepbuffsize()

LUALIB_API char* luaL_prepbuffsize ( luaL_Buffer B,
size_t  sz 
)

◆ luaL_pushresult()

LUALIB_API void luaL_pushresult ( luaL_Buffer B)

◆ luaL_pushresultsize()

LUALIB_API void luaL_pushresultsize ( luaL_Buffer B,
size_t  sz 
)

Definition at line 594 of file lauxlib.cpp.

References luaL_addsize, and luaL_pushresult().

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

◆ luaL_ref()

LUALIB_API int luaL_ref ( lua_State L,
int  t 
)

◆ luaL_requiref()

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

◆ luaL_setfuncs()

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

◆ luaL_setmetatable()

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

◆ luaL_testudata()

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

◆ luaL_tolstring()

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

◆ luaL_traceback()

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

◆ luaL_typeerror()

int luaL_typeerror ( lua_State L,
int  arg,
const char *  tname 
)

◆ luaL_unref()

LUALIB_API void luaL_unref ( lua_State L,
int  t,
int  ref 
)

◆ luaL_where()

LUALIB_API void luaL_where ( lua_State L,
int  level 
)

◆ newbox()

static void newbox ( lua_State L)
static

◆ newbuffsize()

static size_t newbuffsize ( luaL_Buffer B,
size_t  sz 
)
static

Definition at line 522 of file lauxlib.cpp.

References luaL_Buffer::L, luaL_error(), MAX_SIZET, n, luaL_Buffer::n, and luaL_Buffer::size.

Referenced by prepbuffsize().

◆ panic()

static int panic ( lua_State L)
static

Definition at line 999 of file lauxlib.cpp.

References lua_tostring, lua_writestringerror, wfl::msg(), warnfcont(), warnfoff(), and warnfon().

Referenced by luaL_newstate().

◆ prepbuffsize()

static char* prepbuffsize ( luaL_Buffer B,
size_t  sz,
int  boxidx 
)
static

◆ pushfuncname()

static void pushfuncname ( lua_State L,
lua_Debug ar 
)
static

◆ pushglobalfuncname()

static int pushglobalfuncname ( lua_State L,
lua_Debug ar 
)
static

◆ resizebox()

static void* resizebox ( lua_State L,
int  idx,
size_t  newsize 
)
static

Definition at line 473 of file lauxlib.cpp.

References UBox::box, UBox::bsize, lua_error(), lua_getallocf(), lua_pushliteral, and lua_touserdata().

Referenced by boxgc(), and prepbuffsize().

◆ skipBOM()

static int skipBOM ( LoadF lf)
static

Definition at line 720 of file lauxlib.cpp.

References LoadF::buff, c, LoadF::f, LoadF::n, and p.

Referenced by skipcomment().

◆ skipcomment()

static int skipcomment ( LoadF lf,
int *  cp 
)
static

Definition at line 741 of file lauxlib.cpp.

References c, LoadF::f, and skipBOM().

Referenced by luaL_loadfilex().

◆ tag_error()

static void tag_error ( lua_State L,
int  arg,
int  tag 
)
static

Definition at line 207 of file lauxlib.cpp.

References lua_typename(), and luaL_typeerror().

Referenced by interror(), luaL_checklstring(), luaL_checknumber(), and luaL_checktype().

◆ warnfcont()

static void warnfcont ( void *  ud,
const char *  message,
int  tocont 
)
static

Definition at line 1045 of file lauxlib.cpp.

References lua_setwarnf(), lua_writestringerror, and warnfon().

Referenced by panic(), and warnfon().

◆ warnfoff()

static void warnfoff ( void *  ud,
const char *  message,
int  tocont 
)
static

Definition at line 1036 of file lauxlib.cpp.

References checkcontrol().

Referenced by checkcontrol(), luaL_newstate(), and panic().

◆ warnfon()

static void warnfon ( void *  ud,
const char *  message,
int  tocont 
)
static

Definition at line 1057 of file lauxlib.cpp.

References checkcontrol(), lua_writestringerror, and warnfcont().

Referenced by checkcontrol(), panic(), and warnfcont().

Variable Documentation

◆ boxmt

const luaL_Reg boxmt[]
static
Initial value:
= {
{"__gc", boxgc},
{"__close", boxgc},
{NULL, NULL}
}
static int boxgc(lua_State *L)
Definition: lauxlib.cpp:488

Definition at line 494 of file lauxlib.cpp.