detail (added placeholders for non-function fields to preallocate

space for them)
This commit is contained in:
Roberto Ierusalimschy
2014-07-16 10:56:14 -03:00
parent a9af12bbe7
commit f14662fca6
3 changed files with 16 additions and 3 deletions

View File

@@ -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}
};