diff options
Diffstat (limited to '')
| -rw-r--r-- | lmathlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lmathlib.c,v 1.53 2002/12/04 17:38:31 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.54 2002/12/20 10:26:33 roberto Exp roberto $ |
| 3 | ** Standard mathematical library | 3 | ** Standard mathematical library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -233,7 +233,7 @@ static const luaL_reg mathlib[] = { | |||
| 233 | /* | 233 | /* |
| 234 | ** Open math library | 234 | ** Open math library |
| 235 | */ | 235 | */ |
| 236 | LUALIB_API int lua_mathlibopen (lua_State *L) { | 236 | LUALIB_API int luaopen_math (lua_State *L) { |
| 237 | luaL_openlib(L, LUA_MATHLIBNAME, mathlib, 0); | 237 | luaL_openlib(L, LUA_MATHLIBNAME, mathlib, 0); |
| 238 | lua_pushliteral(L, "pi"); | 238 | lua_pushliteral(L, "pi"); |
| 239 | lua_pushnumber(L, PI); | 239 | lua_pushnumber(L, PI); |
