diff options
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 | ||