Changeset 3138 for code/branches/pch/src/tolua/tolua_map.c
- Timestamp:
- Jun 10, 2009, 4:01:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/tolua/tolua_map.c
r3127 r3138 390 390 * It maps 'const type' as being also a 'type' 391 391 */ 392 TOLUA_API void tolua_usertype (lua_State* L, c onst char* type)392 TOLUA_API void tolua_usertype (lua_State* L, char* type) 393 393 { 394 394 char ctype[128] = "const "; … … 404 404 * It pushes the module (or class) table on the stack 405 405 */ 406 TOLUA_API void tolua_beginmodule (lua_State* L, c onst char* name)406 TOLUA_API void tolua_beginmodule (lua_State* L, char* name) 407 407 { 408 408 if (name) … … 427 427 */ 428 428 #if 1 429 TOLUA_API void tolua_module (lua_State* L, c onst char* name, int hasvar)429 TOLUA_API void tolua_module (lua_State* L, char* name, int hasvar) 430 430 { 431 431 if (name) … … 463 463 } 464 464 #else 465 TOLUA_API void tolua_module (lua_State* L, c onst char* name, int hasvar)465 TOLUA_API void tolua_module (lua_State* L, char* name, int hasvar) 466 466 { 467 467 if (name) … … 519 519 * It maps a C class, setting the appropriate inheritance and super classes. 520 520 */ 521 TOLUA_API void tolua_cclass (lua_State* L, c onst char* lname, const char* name, constchar* base, lua_CFunction col)521 TOLUA_API void tolua_cclass (lua_State* L, char* lname, char* name, char* base, lua_CFunction col) 522 522 { 523 523 char cname[128] = "const "; … … 578 578 * It assigns a function into the current module (or class) 579 579 */ 580 TOLUA_API void tolua_function (lua_State* L, c onst char* name, lua_CFunction func)580 TOLUA_API void tolua_function (lua_State* L, char* name, lua_CFunction func) 581 581 { 582 582 lua_pushstring(L,name); … … 601 601 * It assigns a constant number into the current module (or class) 602 602 */ 603 TOLUA_API void tolua_constant (lua_State* L, c onst char* name, lua_Numbervalue)603 TOLUA_API void tolua_constant (lua_State* L, char* name, double value) 604 604 { 605 605 lua_pushstring(L,name); … … 612 612 * It assigns a variable into the current module (or class) 613 613 */ 614 TOLUA_API void tolua_variable (lua_State* L, c onst char* name, lua_CFunction get, lua_CFunction set)614 TOLUA_API void tolua_variable (lua_State* L, char* name, lua_CFunction get, lua_CFunction set) 615 615 { 616 616 /* get func */ … … 664 664 * It assigns an array into the current module (or class) 665 665 */ 666 TOLUA_API void tolua_array (lua_State* L, c onst char* name, lua_CFunction get, lua_CFunction set)666 TOLUA_API void tolua_array (lua_State* L, char* name, lua_CFunction get, lua_CFunction set) 667 667 { 668 668 lua_pushstring(L,".get");
Note: See TracChangeset
for help on using the changeset viewer.