This commit is contained in:
Roberto Ierusalimschy
2002-04-02 17:43:08 -03:00
parent cd99bbcd0d
commit 13ab5a6bb1
6 changed files with 19 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lmathlib.c,v 1.40 2001/12/05 20:15:18 roberto Exp roberto $
** $Id: lmathlib.c,v 1.41 2002/03/20 12:54:08 roberto Exp roberto $
** Standard mathematical library
** See Copyright Notice in lua.h
*/
@@ -234,7 +234,7 @@ static const luaL_reg mathlib[] = {
LUALIB_API int lua_mathlibopen (lua_State *L) {
lua_pushliteral(L, "math");
lua_newtable(L);
luaL_openlib(L, mathlib);
luaL_openlib(L, mathlib, 0);
lua_pushliteral(L, "pi");
lua_pushnumber(L, PI);
lua_settable(L, -3);