From 45cad43c3fedb13a5e424429fe94dc78ba01a118 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 4 Nov 1997 13:27:53 -0200 Subject: "lua_open": now lua has an explicit open operation. --- lmathlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lmathlib.c') diff --git a/lmathlib.c b/lmathlib.c index a30dc03e..18967220 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.2 1997/10/24 17:44:22 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.3 1997/11/03 21:11:44 roberto Exp roberto $ ** Lua standard mathematical library ** See Copyright Notice in lua.h */ @@ -202,8 +202,8 @@ static struct luaL_reg mathlib[] = { */ void lua_mathlibopen (void) { - lua_pushstring("deg"); lua_setglobal("_TRIGMODE"); luaL_openlib(mathlib, (sizeof(mathlib)/sizeof(mathlib[0]))); + lua_pushstring("deg"); lua_setglobal("_TRIGMODE"); lua_pushcfunction(math_pow); lua_pushnumber(0); /* to get its tag */ lua_settagmethod(lua_tag(lua_pop()), "pow"); -- cgit v1.2.3-55-g6feb