Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <stdlib.h>
#include <math.h>
#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 | PI (l_mathop(3.141592653589793238462643383279502884)) |
#define | l_rand() rand() |
#define | l_srand(x) srand(x) |
#define | L_RANDMAX RAND_MAX |
Functions | |
static int | math_abs (lua_State *L) |
static int | math_sin (lua_State *L) |
static int | math_cos (lua_State *L) |
static int | math_tan (lua_State *L) |
static int | math_asin (lua_State *L) |
static int | math_acos (lua_State *L) |
static int | math_atan (lua_State *L) |
static int | math_toint (lua_State *L) |
static void | pushnumint (lua_State *L, lua_Number d) |
static int | math_floor (lua_State *L) |
static int | math_ceil (lua_State *L) |
static int | math_fmod (lua_State *L) |
static int | math_modf (lua_State *L) |
static int | math_sqrt (lua_State *L) |
static int | math_ult (lua_State *L) |
static int | math_log (lua_State *L) |
static int | math_exp (lua_State *L) |
static int | math_deg (lua_State *L) |
static int | math_rad (lua_State *L) |
static int | math_min (lua_State *L) |
static int | math_max (lua_State *L) |
static int | math_random (lua_State *L) |
static int | math_randomseed (lua_State *L) |
static int | math_type (lua_State *L) |
LUAMOD_API int | luaopen_math (lua_State *L) |
Variables | |
static const luaL_Reg | mathlib [] |
#define l_rand | ( | ) | rand() |
Definition at line 32 of file lua-5.3.6/src/lmathlib.c.
Referenced by math_random(), and math_randomseed().
#define L_RANDMAX RAND_MAX |
Definition at line 34 of file lua-5.3.6/src/lmathlib.c.
Referenced by math_random().
#define l_srand | ( | x | ) | srand(x) |
Definition at line 33 of file lua-5.3.6/src/lmathlib.c.
Referenced by math_randomseed().
#define lmathlib_c |
Definition at line 7 of file lua-5.3.6/src/lmathlib.c.
#define LUA_LIB |
Definition at line 8 of file lua-5.3.6/src/lmathlib.c.
#define PI (l_mathop(3.141592653589793238462643383279502884)) |
Definition at line 23 of file lua-5.3.6/src/lmathlib.c.
Referenced by luaopen_math(), math_deg(), and math_rad().
LUAMOD_API int luaopen_math | ( | lua_State * | L | ) |
Definition at line 398 of file lua-5.3.6/src/lmathlib.c.
References lua_pushinteger(), lua_pushnumber(), lua_setfield(), luaL_newlib, mathlib, and PI.
|
static |
Definition at line 39 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_isinteger(), lua_pushinteger(), lua_pushnumber(), lua_tointeger, and luaL_checknumber().
|
static |
Definition at line 70 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 65 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 75 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_pushnumber(), luaL_checknumber(), and luaL_optnumber().
|
static |
Definition at line 116 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_isinteger(), lua_settop(), luaL_checknumber(), and pushnumint().
|
static |
Definition at line 55 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 204 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_pushnumber(), luaL_checknumber(), and PI.
|
static |
Definition at line 199 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 105 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_isinteger(), lua_settop(), luaL_checknumber(), and pushnumint().
|
static |
Definition at line 127 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_isinteger(), lua_pushinteger(), lua_pushnumber(), lua_tointeger, luaL_argcheck, and luaL_checknumber().
|
static |
Definition at line 179 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_isnoneornil, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 229 of file lua-5.3.6/src/lmathlib.c.
References lua_compare(), lua_gettop(), LUA_OPLT, lua_pushvalue(), and luaL_argcheck.
|
static |
Definition at line 215 of file lua-5.3.6/src/lmathlib.c.
References lua_compare(), lua_gettop(), LUA_OPLT, lua_pushvalue(), and luaL_argcheck.
|
static |
Definition at line 149 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_isinteger(), lua_pushnumber(), lua_settop(), luaL_checknumber(), and pushnumint().
|
static |
Definition at line 209 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_pushnumber(), luaL_checknumber(), and PI.
|
static |
Definition at line 247 of file lua-5.3.6/src/lmathlib.c.
References l_rand, L_RANDMAX, lua_gettop(), lua_pushinteger(), lua_pushnumber(), luaL_argcheck, luaL_checkinteger(), and luaL_error().
|
static |
Definition at line 277 of file lua-5.3.6/src/lmathlib.c.
References l_rand, l_srand, and luaL_checknumber().
|
static |
Definition at line 50 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 166 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 60 of file lua-5.3.6/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 83 of file lua-5.3.6/src/lmathlib.c.
References lua_pushinteger(), lua_pushnil(), lua_tointegerx(), and luaL_checkany().
|
static |
Definition at line 284 of file lua-5.3.6/src/lmathlib.c.
References lua_isinteger(), lua_pushliteral, lua_pushnil(), LUA_TNUMBER, lua_type(), and luaL_checkany().
|
static |
Definition at line 172 of file lua-5.3.6/src/lmathlib.c.
References lua_pushboolean(), and luaL_checkinteger().
|
static |
Definition at line 96 of file lua-5.3.6/src/lmathlib.c.
References lua_numbertointeger, lua_pushinteger(), and lua_pushnumber().
Referenced by math_ceil(), math_floor(), and math_modf().
|
static |
Definition at line 352 of file lua-5.3.6/src/lmathlib.c.
Referenced by luaopen_math().