Changeset 3127 for code/branches/pch/src/tolua/tolua++.h
- Timestamp:
- Jun 9, 2009, 4:29:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/tolua/tolua++.h
r2710 r3127 58 58 #define tolua_pushfieldcppstring(L,lo,idx,s) tolua_pushfieldstring(L, lo, idx, s.c_str()) 59 59 60 #define TEMPLATE_BIND(p) 60 #ifndef TEMPLATE_BIND 61 #define TEMPLATE_BIND(p) 62 #endif 63 61 64 #define TOLUA_TEMPLATE_BIND(p) 65 62 66 #define TOLUA_PROTECTED_DESTRUCTOR 63 67 #define TOLUA_PROPERTY_TYPE(p) … … 79 83 80 84 TOLUA_API const char* tolua_typename (lua_State* L, int lo); 81 TOLUA_API void tolua_error (lua_State* L, c har* msg, tolua_Error* err);85 TOLUA_API void tolua_error (lua_State* L, const char* msg, tolua_Error* err); 82 86 TOLUA_API int tolua_isnoobj (lua_State* L, int lo, tolua_Error* err); 83 87 TOLUA_API int tolua_isvalue (lua_State* L, int lo, int def, tolua_Error* err); 88 TOLUA_API int tolua_isvaluenil (lua_State* L, int lo, tolua_Error* err); 84 89 TOLUA_API int tolua_isboolean (lua_State* L, int lo, int def, tolua_Error* err); 85 90 TOLUA_API int tolua_isnumber (lua_State* L, int lo, int def, tolua_Error* err); … … 110 115 TOLUA_API int tolua_default_collect (lua_State* tolua_S); 111 116 112 TOLUA_API void tolua_usertype (lua_State* L, c har* type);113 TOLUA_API void tolua_beginmodule (lua_State* L, c har* name);117 TOLUA_API void tolua_usertype (lua_State* L, const char* type); 118 TOLUA_API void tolua_beginmodule (lua_State* L, const char* name); 114 119 TOLUA_API void tolua_endmodule (lua_State* L); 115 TOLUA_API void tolua_module (lua_State* L, c har* name, int hasvar);116 TOLUA_API void tolua_class (lua_State* L, c har* name,char* base);117 TOLUA_API void tolua_cclass (lua_State* L, c har* lname, char* name,char* base, lua_CFunction col);118 TOLUA_API void tolua_function (lua_State* L, c har* name, lua_CFunction func);119 TOLUA_API void tolua_constant (lua_State* L, c har* name, doublevalue);120 TOLUA_API void tolua_variable (lua_State* L, c har* name, lua_CFunction get, lua_CFunction set);121 TOLUA_API void tolua_array (lua_State* L,c har* name, lua_CFunction get, lua_CFunction set);120 TOLUA_API void tolua_module (lua_State* L, const char* name, int hasvar); 121 TOLUA_API void tolua_class (lua_State* L, const char* name, const char* base); 122 TOLUA_API void tolua_cclass (lua_State* L, const char* lname, const char* name, const char* base, lua_CFunction col); 123 TOLUA_API void tolua_function (lua_State* L, const char* name, lua_CFunction func); 124 TOLUA_API void tolua_constant (lua_State* L, const char* name, lua_Number value); 125 TOLUA_API void tolua_variable (lua_State* L, const char* name, lua_CFunction get, lua_CFunction set); 126 TOLUA_API void tolua_array (lua_State* L,const char* name, lua_CFunction get, lua_CFunction set); 122 127 123 128 /* TOLUA_API void tolua_set_call_event(lua_State* L, lua_CFunction func, char* type); */ … … 126 131 TOLUA_API void tolua_pushvalue (lua_State* L, int lo); 127 132 TOLUA_API void tolua_pushboolean (lua_State* L, int value); 128 TOLUA_API void tolua_pushnumber (lua_State* L, doublevalue);133 TOLUA_API void tolua_pushnumber (lua_State* L, lua_Number value); 129 134 TOLUA_API void tolua_pushstring (lua_State* L, const char* value); 130 135 TOLUA_API void tolua_pushuserdata (lua_State* L, void* value); … … 133 138 TOLUA_API void tolua_pushfieldvalue (lua_State* L, int lo, int index, int v); 134 139 TOLUA_API void tolua_pushfieldboolean (lua_State* L, int lo, int index, int v); 135 TOLUA_API void tolua_pushfieldnumber (lua_State* L, int lo, int index, doublev);140 TOLUA_API void tolua_pushfieldnumber (lua_State* L, int lo, int index, lua_Number v); 136 141 TOLUA_API void tolua_pushfieldstring (lua_State* L, int lo, int index, const char* v); 137 142 TOLUA_API void tolua_pushfielduserdata (lua_State* L, int lo, int index, void* v); … … 139 144 TOLUA_API void tolua_pushfieldusertype_and_takeownership (lua_State* L, int lo, int index, void* v, const char* type); 140 145 141 TOLUA_API double tolua_tonumber (lua_State* L, int narg, doubledef);146 TOLUA_API lua_Number tolua_tonumber (lua_State* L, int narg, lua_Number def); 142 147 TOLUA_API const char* tolua_tostring (lua_State* L, int narg, const char* def); 143 148 TOLUA_API void* tolua_touserdata (lua_State* L, int narg, void* def); … … 145 150 TOLUA_API int tolua_tovalue (lua_State* L, int narg, int def); 146 151 TOLUA_API int tolua_toboolean (lua_State* L, int narg, int def); 147 TOLUA_API double tolua_tofieldnumber (lua_State* L, int lo, int index, doubledef);152 TOLUA_API lua_Number tolua_tofieldnumber (lua_State* L, int lo, int index, lua_Number def); 148 153 TOLUA_API const char* tolua_tofieldstring (lua_State* L, int lo, int index, const char* def); 149 154 TOLUA_API void* tolua_tofielduserdata (lua_State* L, int lo, int index, void* def); … … 176 181 TOLUA_API int tolua_fast_isa(lua_State *L, int mt_indexa, int mt_indexb, int super_index); 177 182 183 #ifndef Mtolua_new 184 #define Mtolua_new(EXP) new EXP 185 #endif 186 187 #ifndef Mtolua_delete 188 #define Mtolua_delete(EXP) delete EXP 189 #endif 190 191 #ifndef Mtolua_new_dim 192 #define Mtolua_new_dim(EXP, len) new EXP[len] 193 #endif 194 195 #ifndef Mtolua_delete_dim 196 #define Mtolua_delete_dim(EXP) delete [] EXP 197 #endif 198 199 #ifndef tolua_outside 200 #define tolua_outside 201 #endif 202 203 #ifndef tolua_owned 204 #define tolua_owned 205 #endif 206 178 207 #ifdef __cplusplus 179 208 }
Note: See TracChangeset
for help on using the changeset viewer.