____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"#include "tolua++.h"#include "tolua_event.h"#include "lauxlib.h"#include <string.h>#include <stdio.h>#include <stdlib.h>#include <math.h>Go to the source code of this file.
Functions | |
| static int | tolua_newmetatable (lua_State *L, const char *name) |
| static void | mapsuper (lua_State *L, const char *name, const char *base) |
| static void | set_ubox (lua_State *L) |
| static void | mapinheritance (lua_State *L, const char *name, const char *base) |
| static int | tolua_bnd_type (lua_State *L) |
| static int | tolua_bnd_takeownership (lua_State *L) |
| static int | tolua_bnd_releaseownership (lua_State *L) |
| static int | tolua_bnd_cast (lua_State *L) |
| static int | tolua_bnd_inherit (lua_State *L) |
| TOLUA_API void | tolua_open (lua_State *L) |
| TOLUA_API void * | tolua_copy (lua_State *L, void *value, unsigned int size) |
| TOLUA_API int | tolua_default_collect (lua_State *tolua_S) |
| TOLUA_API int | tolua_register_gc (lua_State *L, int lo) |
| TOLUA_API void | tolua_usertype (lua_State *L, const char *type) |
| TOLUA_API void | tolua_beginmodule (lua_State *L, const char *name) |
| TOLUA_API void | tolua_endmodule (lua_State *L) |
| TOLUA_API void | tolua_module (lua_State *L, const char *name, int hasvar) |
| static void | push_collector (lua_State *L, const char *type, lua_CFunction col) |
| TOLUA_API void | tolua_cclass (lua_State *L, const char *lname, const char *name, const char *base, lua_CFunction col) |
| TOLUA_API void | tolua_function (lua_State *L, const char *name, lua_CFunction func) |
| TOLUA_API void | tolua_constant (lua_State *L, const char *name, double value) |
| TOLUA_API void | tolua_variable (lua_State *L, const char *name, lua_CFunction get, lua_CFunction set) |
| static int | const_array (lua_State *L) |
| TOLUA_API void | tolua_array (lua_State *L, const char *name, lua_CFunction get, lua_CFunction set) |
| TOLUA_API void | tolua_dobuffer (lua_State *L, char *B, unsigned int size, const char *name) |
| static int const_array | ( | lua_State * | L | ) | [static] |
| static void mapinheritance | ( | lua_State * | L, | |
| const char * | name, | |||
| const char * | base | |||
| ) | [static] |
| static void mapsuper | ( | lua_State * | L, | |
| const char * | name, | |||
| const char * | base | |||
| ) | [static] |
| static void push_collector | ( | lua_State * | L, | |
| const char * | type, | |||
| lua_CFunction | col | |||
| ) | [static] |
| static void set_ubox | ( | lua_State * | L | ) | [static] |
| TOLUA_API void tolua_array | ( | lua_State * | L, | |
| const char * | name, | |||
| lua_CFunction | get, | |||
| lua_CFunction | set | |||
| ) |
Definition at line 665 of file tolua_map.cpp.
References const_array().
Referenced by tolua_stratagus_open().
| TOLUA_API void tolua_beginmodule | ( | lua_State * | L, | |
| const char * | name | |||
| ) |
Definition at line 405 of file tolua_map.cpp.
Referenced by tolua_open(), and tolua_stratagus_open().
| static int tolua_bnd_cast | ( | lua_State * | L | ) | [static] |
Definition at line 209 of file tolua_map.cpp.
References tolua_pushusertype(), tolua_tostring(), tolua_touserdata(), and tolua_tousertype().
Referenced by tolua_open().
| static int tolua_bnd_inherit | ( | lua_State * | L | ) | [static] |
| static int tolua_bnd_releaseownership | ( | lua_State * | L | ) | [static] |
| static int tolua_bnd_takeownership | ( | lua_State * | L | ) | [static] |
Definition at line 154 of file tolua_map.cpp.
References tolua_register_gc().
Referenced by tolua_open().
| static int tolua_bnd_type | ( | lua_State * | L | ) | [static] |
Definition at line 146 of file tolua_map.cpp.
References tolua_typename().
Referenced by tolua_open().
| TOLUA_API void tolua_cclass | ( | lua_State * | L, | |
| const char * | lname, | |||
| const char * | name, | |||
| const char * | base, | |||
| lua_CFunction | col | |||
| ) |
Definition at line 520 of file tolua_map.cpp.
References mapinheritance(), mapsuper(), and push_collector().
Referenced by tolua_stratagus_open().
| TOLUA_API void tolua_constant | ( | lua_State * | L, | |
| const char * | name, | |||
| double | value | |||
| ) |
Definition at line 602 of file tolua_map.cpp.
References tolua_pushnumber().
Referenced by tolua_stratagus_open().
| TOLUA_API void* tolua_copy | ( | lua_State * | L, | |
| void * | value, | |||
| unsigned int | size | |||
| ) |
Definition at line 346 of file tolua_map.cpp.
References tolua_error().
Referenced by tolua_stratagus_CPatchManager_getPatchTypeNames00(), tolua_stratagus_vector_CFiller___geti00(), tolua_stratagus_vector_CFiller___geti01(), tolua_stratagus_vector_CUIButton___geti00(), and tolua_stratagus_vector_CUIButton___geti01().
| TOLUA_API int tolua_default_collect | ( | lua_State * | tolua_S | ) |
Definition at line 358 of file tolua_map.cpp.
References tolua_tousertype().
Referenced by class_gc_event().
| TOLUA_API void tolua_dobuffer | ( | lua_State * | L, | |
| char * | B, | |||
| unsigned int | size, | |||
| const char * | name | |||
| ) |
| TOLUA_API void tolua_endmodule | ( | lua_State * | L | ) |
Definition at line 419 of file tolua_map.cpp.
Referenced by tolua_open(), and tolua_stratagus_open().
| TOLUA_API void tolua_function | ( | lua_State * | L, | |
| const char * | name, | |||
| lua_CFunction | func | |||
| ) |
Definition at line 579 of file tolua_map.cpp.
Referenced by tolua_open(), and tolua_stratagus_open().
| TOLUA_API void tolua_module | ( | lua_State * | L, | |
| const char * | name, | |||
| int | hasvar | |||
| ) |
Definition at line 428 of file tolua_map.cpp.
References tolua_ismodulemetatable(), and tolua_moduleevents().
Referenced by tolua_open(), and tolua_stratagus_open().
| static int tolua_newmetatable | ( | lua_State * | L, | |
| const char * | name | |||
| ) | [static] |
Definition at line 27 of file tolua_map.cpp.
References tolua_classevents().
Referenced by tolua_open(), and tolua_usertype().
| TOLUA_API void tolua_open | ( | lua_State * | L | ) |
Definition at line 284 of file tolua_map.cpp.
References class_gc_event(), tolua_beginmodule(), tolua_bnd_cast(), tolua_bnd_inherit(), tolua_bnd_releaseownership(), tolua_bnd_takeownership(), tolua_bnd_type(), tolua_endmodule(), tolua_function(), tolua_module(), and tolua_newmetatable().
Referenced by tolua_stratagus_open().
| TOLUA_API int tolua_register_gc | ( | lua_State * | L, | |
| int | lo | |||
| ) |
Definition at line 367 of file tolua_map.cpp.
Referenced by tolua_bnd_takeownership(), tolua_pushfieldusertype_and_takeownership(), and tolua_pushusertype_and_takeownership().
| TOLUA_API void tolua_usertype | ( | lua_State * | L, | |
| const char * | type | |||
| ) |
Definition at line 391 of file tolua_map.cpp.
References mapsuper(), and tolua_newmetatable().
Referenced by tolua_reg_types().
| TOLUA_API void tolua_variable | ( | lua_State * | L, | |
| const char * | name, | |||
| lua_CFunction | get, | |||
| lua_CFunction | set | |||
| ) |
1.5.6