commit ea69f17d989784f75433eb69de0ad2dbe6c7195a
parent 420cc62facc5b49d0aebfb9be7ddfe911d77ff97
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Mon, 31 Mar 2014 15:37:27 -0300
macro 'tostring' is used only by 'luaV_concat'
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lvm.c b/lvm.c
@@ -1,5 +1,5 @@
/*
-** $Id: lvm.c,v 2.189 2014/03/14 16:54:08 roberto Exp roberto $
+** $Id: lvm.c,v 2.190 2014/03/15 12:29:48 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -257,6 +257,8 @@ int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2) {
}
+#define tostring(L,o) (ttisstring(o) || (luaV_tostring(L, o)))
+
void luaV_concat (lua_State *L, int total) {
lua_assert(total >= 2);
do {
diff --git a/lvm.h b/lvm.h
@@ -1,5 +1,5 @@
/*
-** $Id: lvm.h,v 2.24 2013/12/16 14:30:22 roberto Exp roberto $
+** $Id: lvm.h,v 2.25 2013/12/30 20:47:58 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -13,8 +13,6 @@
#include "ltm.h"
-#define tostring(L,o) (ttisstring(o) || (luaV_tostring(L, o)))
-
#define tonumber(o,n) \
(ttisfloat(o) ? (*(n) = fltvalue(o), 1) : luaV_tonumber_(o,n))