diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-02 17:43:08 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-02 17:43:08 -0300 |
commit | 13ab5a6bb1258d640bda2e6d776d5a38f3fa867b (patch) | |
tree | 22e8c2e5c1d10001d0abdeced6046e4489962f27 /lmathlib.c | |
parent | cd99bbcd0d88e7b5864ea9c9634ce8abd9bdedda (diff) | |
download | lua-13ab5a6bb1258d640bda2e6d776d5a38f3fa867b.tar.gz lua-13ab5a6bb1258d640bda2e6d776d5a38f3fa867b.tar.bz2 lua-13ab5a6bb1258d640bda2e6d776d5a38f3fa867b.zip |
details
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.40 2001/12/05 20:15:18 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.41 2002/03/20 12:54:08 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 | */ |
@@ -234,7 +234,7 @@ static const luaL_reg mathlib[] = { | |||
234 | LUALIB_API int lua_mathlibopen (lua_State *L) { | 234 | LUALIB_API int lua_mathlibopen (lua_State *L) { |
235 | lua_pushliteral(L, "math"); | 235 | lua_pushliteral(L, "math"); |
236 | lua_newtable(L); | 236 | lua_newtable(L); |
237 | luaL_openlib(L, mathlib); | 237 | luaL_openlib(L, mathlib, 0); |
238 | lua_pushliteral(L, "pi"); | 238 | lua_pushliteral(L, "pi"); |
239 | lua_pushnumber(L, PI); | 239 | lua_pushnumber(L, PI); |
240 | lua_settable(L, -3); | 240 | lua_settable(L, -3); |