|
native Lua
0.4.0
Lua on the platform you use with the compiler you choose
|
#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 | |
| LUAMOD_API int | luaopen_math (lua_State *L) |
| #define l_rand | ( | ) | rand() |
| #define L_RANDMAX RAND_MAX |
| #define l_srand | ( | x | ) | srand(x) |
| #define lmathlib_c |
| #define LUA_LIB |
| #define PI (l_mathop(3.141592653589793238462643383279502884)) |
| LUAMOD_API int luaopen_math | ( | lua_State * | L | ) |
1.8.20