Searched refs:luaL_checknumber (Results 1 – 4 of 4) sorted by relevance
/external/lua/src/ |
D | lmathlib.c | 46 lua_pushnumber(L, l_mathop(fabs)(luaL_checknumber(L, 1))); in math_abs() 51 lua_pushnumber(L, l_mathop(sin)(luaL_checknumber(L, 1))); in math_sin() 56 lua_pushnumber(L, l_mathop(cos)(luaL_checknumber(L, 1))); in math_cos() 61 lua_pushnumber(L, l_mathop(tan)(luaL_checknumber(L, 1))); in math_tan() 66 lua_pushnumber(L, l_mathop(asin)(luaL_checknumber(L, 1))); in math_asin() 71 lua_pushnumber(L, l_mathop(acos)(luaL_checknumber(L, 1))); in math_acos() 76 lua_Number y = luaL_checknumber(L, 1); in math_atan() 109 lua_Number d = l_mathop(floor)(luaL_checknumber(L, 1)); in math_floor() 120 lua_Number d = l_mathop(ceil)(luaL_checknumber(L, 1)); in math_ceil() 138 lua_pushnumber(L, l_mathop(fmod)(luaL_checknumber(L, 1), in math_fmod() [all …]
|
D | lauxlib.h | 51 LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int arg);
|
D | lstrlib.c | 1051 luaL_checknumber(L, arg)); in str_format() 1055 lua_Number n = luaL_checknumber(L, arg); in str_format() 1367 lua_Number n = luaL_checknumber(L, arg); /* get argument */ in str_pack()
|
D | lauxlib.c | 408 LUALIB_API lua_Number luaL_checknumber (lua_State *L, int arg) { in luaL_checknumber() function 418 return luaL_opt(L, luaL_checknumber, arg, def); in luaL_optnumber()
|