Changeset 3138 for code/branches/pch/src/tolua/tolua_to.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_to.c
r3127 r3138 18 18 #include <stdlib.h> 19 19 20 TOLUA_API lua_Number tolua_tonumber (lua_State* L, int narg, lua_Numberdef)20 TOLUA_API double tolua_tonumber (lua_State* L, int narg, double def) 21 21 { 22 22 return lua_gettop(L)<abs(narg) ? def : lua_tonumber(L,narg); … … 72 72 } 73 73 74 TOLUA_API lua_Number tolua_tofieldnumber (lua_State* L, int lo, int index, lua_Numberdef)74 TOLUA_API double tolua_tofieldnumber (lua_State* L, int lo, int index, double def) 75 75 { 76 76 double v;
Note: See TracChangeset
for help on using the changeset viewer.