Changeset 3127 for code/branches/pch/src/tolua/tolua_to.c
- Timestamp:
- Jun 9, 2009, 4:29:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/tolua/tolua_to.c
r1505 r3127 18 18 #include <stdlib.h> 19 19 20 TOLUA_API double tolua_tonumber (lua_State* L, int narg, doubledef)20 TOLUA_API lua_Number tolua_tonumber (lua_State* L, int narg, lua_Number def) 21 21 { 22 22 return lua_gettop(L)<abs(narg) ? def : lua_tonumber(L,narg); … … 72 72 } 73 73 74 TOLUA_API double tolua_tofieldnumber (lua_State* L, int lo, int index, doubledef)74 TOLUA_API lua_Number tolua_tofieldnumber (lua_State* L, int lo, int index, lua_Number def) 75 75 { 76 76 double v;
Note: See TracChangeset
for help on using the changeset viewer.