native Lua  0.4.0
Lua on the platform you use with the compiler you choose
Macros | Functions
lmathlib.c File Reference
#include "lprefix.h"
#include <stdlib.h>
#include <math.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Include dependency graph for lmathlib.c:

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

LUAMOD_API int luaopen_math (lua_State *L)
 

Macro Definition Documentation

◆ l_rand

#define l_rand ( )    rand()

◆ L_RANDMAX

#define L_RANDMAX   RAND_MAX

◆ l_srand

#define l_srand (   x)    srand(x)

◆ lmathlib_c

#define lmathlib_c

◆ LUA_LIB

#define LUA_LIB

◆ PI

#define PI   (l_mathop(3.141592653589793238462643383279502884))

Function Documentation

◆ luaopen_math()

LUAMOD_API int luaopen_math ( lua_State L)