diff options
Diffstat (limited to 'lmathlib.c')
-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.44 2002/05/02 17:12:27 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.45 2002/05/06 19:05:10 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 | */ |
@@ -231,7 +231,7 @@ static const luaL_reg mathlib[] = { | |||
231 | ** Open math library | 231 | ** Open math library |
232 | */ | 232 | */ |
233 | LUALIB_API int lua_mathlibopen (lua_State *L) { | 233 | LUALIB_API int lua_mathlibopen (lua_State *L) { |
234 | lua_pushliteral(L, "math"); | 234 | lua_pushliteral(L, LUA_MATHLIBNAME); |
235 | lua_newtable(L); | 235 | lua_newtable(L); |
236 | luaL_openlib(L, mathlib, 0); | 236 | luaL_openlib(L, mathlib, 0); |
237 | lua_pushliteral(L, "pi"); | 237 | lua_pushliteral(L, "pi"); |