diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-03-11 09:30:37 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-03-11 09:30:37 -0300 |
| commit | 4039bf457db730caa9f3b3ceba391fa41b516def (patch) | |
| tree | 8f291a0710390cb6885e126c56e30aa088d2f197 /lmathlib.c | |
| parent | 034de1fe73c24dcb75658b4c9ab16dd012ba3057 (diff) | |
| download | lua-4039bf457db730caa9f3b3ceba391fa41b516def.tar.gz lua-4039bf457db730caa9f3b3ceba391fa41b516def.tar.bz2 lua-4039bf457db730caa9f3b3ceba391fa41b516def.zip | |
^ operator is defined by global `__pow'
Diffstat (limited to '')
| -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.54 2002/12/20 10:26:33 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.55 2003/03/11 12:24:34 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 | */ |
| @@ -240,7 +240,7 @@ LUALIB_API int luaopen_math (lua_State *L) { | |||
| 240 | lua_settable(L, -3); | 240 | lua_settable(L, -3); |
| 241 | lua_pushliteral(L, "__pow"); | 241 | lua_pushliteral(L, "__pow"); |
| 242 | lua_pushcfunction(L, math_pow); | 242 | lua_pushcfunction(L, math_pow); |
| 243 | lua_settable(L, LUA_REGISTRYINDEX); | 243 | lua_settable(L, LUA_GLOBALSINDEX); |
| 244 | return 1; | 244 | return 1; |
| 245 | } | 245 | } |
| 246 | 246 | ||
