diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-31 17:23:40 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-31 17:23:40 -0300 |
commit | f0b3cd1d6f35ba34091450d5e3057269114a17b6 (patch) | |
tree | ceffcf31f1823709b7ab4e63801e5e483abf8490 /lmathlib.c | |
parent | fb5e6d5ac498649b8e1b6bf068d18078ef70d523 (diff) | |
download | lua-f0b3cd1d6f35ba34091450d5e3057269114a17b6.tar.gz lua-f0b3cd1d6f35ba34091450d5e3057269114a17b6.tar.bz2 lua-f0b3cd1d6f35ba34091450d5e3057269114a17b6.zip |
new API functions `pop', `insert', and `move'
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.26 2000/08/09 19:16:57 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.27 2000/08/28 17:57:04 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 @@ void lua_mathlibopen (lua_State *L) { | |||
233 | lua_pushnumber(L, 0); /* to get its tag */ | 233 | lua_pushnumber(L, 0); /* to get its tag */ |
234 | lua_pushcfunction(L, math_pow); | 234 | lua_pushcfunction(L, math_pow); |
235 | lua_settagmethod(L, lua_tag(L, -2), "pow"); | 235 | lua_settagmethod(L, lua_tag(L, -2), "pow"); |
236 | lua_settop(L, -1); /* remove number */ | 236 | lua_pop(L, 1); /* remove number */ |
237 | lua_pushnumber(L, PI); lua_setglobal(L, "PI"); | 237 | lua_pushnumber(L, PI); lua_setglobal(L, "PI"); |
238 | } | 238 | } |
239 | 239 | ||