|
RetroArch
|
#include "lprefix.h"#include <stdlib.h>#include <math.h>#include "lua.h"#include "lauxlib.h"#include "lualib.h"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() |
| #define L_RANDMAX RAND_MAX |
| #define lmathlib_c |
| #define LUA_LIB |
| #define PI (l_mathop(3.141592653589793238462643383279502884)) |
| LUAMOD_API int luaopen_math | ( | lua_State * | L | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
1.8.15