diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-05 14:24:04 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-05 14:24:04 -0300 |
commit | 5b8ee9fa8d9bc3d3ad41a1acd547b79bc3b669a7 (patch) | |
tree | e9d62d00cd762b64e30ce2297319f91064d54d7e /lmathlib.c | |
parent | 2cd6161060f3e9149e7a61a126bec76cd4f1b333 (diff) | |
download | lua-5b8ee9fa8d9bc3d3ad41a1acd547b79bc3b669a7.tar.gz lua-5b8ee9fa8d9bc3d3ad41a1acd547b79bc3b669a7.tar.bz2 lua-5b8ee9fa8d9bc3d3ad41a1acd547b79bc3b669a7.zip |
new names for standard libraries
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"); |