From 8c1fb918027eea52c229907e3c3e371c7c14923a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 2 Nov 2015 14:09:30 -0200 Subject: macro 'incr_top' replaced by function 'luaD_inctop'. (It is not used in critical time pathes, can save a few bytes without the macro) --- lobject.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lobject.c') diff --git a/lobject.c b/lobject.c index 6b80c0ed..93dba050 100644 --- a/lobject.c +++ b/lobject.c @@ -1,5 +1,5 @@ /* -** $Id: lobject.c,v 2.106 2015/06/26 19:32:07 roberto Exp roberto $ +** $Id: lobject.c,v 2.107 2015/11/02 14:02:35 roberto Exp roberto $ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ @@ -347,7 +347,7 @@ void luaO_tostring (lua_State *L, StkId obj) { static void pushstr (lua_State *L, const char *str, size_t l) { setsvalue2s(L, L->top, luaS_newlstr(L, str, l)); - incr_top(L); + luaD_inctop(L); } @@ -385,7 +385,7 @@ const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) { case 'f': { setfltvalue(L->top, cast_num(va_arg(argp, l_uacNumber))); top2str: - incr_top(L); + luaD_inctop(L); luaO_tostring(L, L->top - 1); break; } -- cgit v1.2.3-55-g6feb