From f14662fca63652dc112732b899e3d829bfecb1ae Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 16 Jul 2014 10:56:14 -0300 Subject: detail (added placeholders for non-function fields to preallocate space for them) --- lmathlib.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lmathlib.c') diff --git a/lmathlib.c b/lmathlib.c index bdbb0aa1..61800799 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.104 2014/06/26 18:38:28 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.105 2014/06/30 19:48:08 roberto Exp roberto $ ** Standard mathematical library ** See Copyright Notice in lua.h */ @@ -363,6 +363,11 @@ static const luaL_Reg mathlib[] = { {"ldexp", math_ldexp}, {"log10", math_log10}, #endif + /* placeholders */ + {"pi", NULL}, + {"huge", NULL}, + {"maxinteger", NULL}, + {"mininteger", NULL}, {NULL, NULL} }; -- cgit v1.2.3-55-g6feb