diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-07 18:00:33 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-07 18:00:33 -0200 |
commit | f61d435a7d34a07c2edd51714ad6072916e40092 (patch) | |
tree | 4f1618078fb008b579533a661b46dba83624a42c /lmathlib.c | |
parent | 071b2ae0e1aba719cb3f909d2b02c79f5873ff36 (diff) | |
download | lua-f61d435a7d34a07c2edd51714ad6072916e40092.tar.gz lua-f61d435a7d34a07c2edd51714ad6072916e40092.tar.bz2 lua-f61d435a7d34a07c2edd51714ad6072916e40092.zip |
a^b calls `pow´ (from math.h) directly
Diffstat (limited to 'lmathlib.c')
-rw-r--r-- | lmathlib.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmathlib.c,v 1.60 2004/04/30 20:13:38 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.61 2004/05/10 18:11:32 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 | */ |
@@ -225,8 +225,6 @@ LUALIB_API int luaopen_math (lua_State *L) { | |||
225 | luaL_openlib(L, LUA_MATHLIBNAME, mathlib, 0); | 225 | luaL_openlib(L, LUA_MATHLIBNAME, mathlib, 0); |
226 | lua_pushnumber(L, PI); | 226 | lua_pushnumber(L, PI); |
227 | lua_setfield(L, -2, "pi"); | 227 | lua_setfield(L, -2, "pi"); |
228 | lua_pushcfunction(L, math_pow); | ||
229 | lua_setglobal(L, "__pow"); | ||
230 | return 1; | 228 | return 1; |
231 | } | 229 | } |
232 | 230 | ||