#include <stdlib.h>
#include <math.h>
#include <boost/math/constants/constants.hpp>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Go to the source code of this file.
Macros | |
#define | lmathlib_c |
#define | LUA_LIB |
#define | RADIANS_PER_DEGREE ( boost::math::constants::pi<lua_Number>()/180.0 ) |
Variables | |
static const luaL_Reg | mathlib [] |
#define lmathlib_c |
Definition at line 11 of file lmathlib.cpp.
#define LUA_LIB |
Definition at line 12 of file lmathlib.cpp.
#define RADIANS_PER_DEGREE ( boost::math::constants::pi<lua_Number>()/180.0 ) |
Definition at line 20 of file lmathlib.cpp.
Referenced by math_deg(), and math_rad().
LUAMOD_API int luaopen_math | ( | lua_State * | L | ) |
Definition at line 269 of file lmathlib.cpp.
References lua_pushnumber(), lua_setfield(), and luaL_newlib.
Referenced by lua_kernel_base::lua_kernel_base().
Definition at line 24 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 64 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 59 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 69 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 74 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 80 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 39 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 44 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 142 of file lmathlib.cpp.
References lua_pushnumber(), luaL_checknumber(), and RADIANS_PER_DEGREE.
Definition at line 137 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 85 of file lmathlib.cpp.
References floating_point_emulation::floor(), l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 90 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 152 of file lmathlib.cpp.
References e, l_mathop, lua_pushinteger(), lua_pushnumber(), and luaL_checknumber().
Definition at line 159 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), luaL_checkint, and luaL_checknumber().
Definition at line 116 of file lmathlib.cpp.
References l_mathop, lua_isnoneornil, lua_pushnumber(), and luaL_checknumber().
Definition at line 131 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 182 of file lmathlib.cpp.
References d, i, lua_gettop(), lua_pushnumber(), and luaL_checknumber().
Definition at line 168 of file lmathlib.cpp.
References d, i, lua_gettop(), lua_pushnumber(), and luaL_checknumber().
Definition at line 96 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 109 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 147 of file lmathlib.cpp.
References lua_pushnumber(), luaL_checknumber(), and RADIANS_PER_DEGREE.
Definition at line 196 of file lmathlib.cpp.
References floating_point_emulation::floor(), l_mathop, lua_gettop(), lua_pushnumber(), luaL_argcheck, luaL_checknumber(), and luaL_error().
Definition at line 224 of file lmathlib.cpp.
References luaL_checkunsigned().
Definition at line 29 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 34 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 104 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 49 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
Definition at line 54 of file lmathlib.cpp.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 231 of file lmathlib.cpp.