The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions | Variables
ltm.cpp File Reference
#include <string.h>
#include "lua.h"
#include "lobject.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
Include dependency graph for ltm.cpp:

Go to the source code of this file.

Macros

#define ltm_c
 
#define LUA_CORE
 

Functions

void luaT_init (lua_State *L)
 
const TValueluaT_gettm (Table *events, TMS event, TString *ename)
 
const TValueluaT_gettmbyobj (lua_State *L, const TValue *o, TMS event)
 

Variables

static const char udatatypename [] = "userdata"
 
LUAI_DDEF const char *const luaT_typenames_ [LUA_TOTALTAGS]
 

Macro Definition Documentation

#define ltm_c

Definition at line 9 of file ltm.cpp.

#define LUA_CORE

Definition at line 10 of file ltm.cpp.

Function Documentation

const TValue* luaT_gettm ( Table events,
TMS  event,
TString ename 
)

Definition at line 51 of file ltm.cpp.

References cast_byte, Table::flags, lua_assert, luaH_getstr(), TM_EQ, and ttisnil.

const TValue* luaT_gettmbyobj ( lua_State L,
const TValue o,
TMS  event 
)
void luaT_init ( lua_State L)

Definition at line 31 of file ltm.cpp.

References G, i, luaS_fix, luaS_new(), and TM_N.

Referenced by f_luaopen().

Variable Documentation

LUAI_DDEF const char* const luaT_typenames_[LUA_TOTALTAGS]
Initial value:
= {
"no value",
"nil", "boolean", udatatypename, "number",
"string", "table", "function", udatatypename, "thread",
"proto", "upval"
}
static const char udatatypename[]
Definition: ltm.cpp:21

Definition at line 23 of file ltm.cpp.

const char udatatypename[] = "userdata"
static

Definition at line 21 of file ltm.cpp.