From 6a024df44053c18b9504a004f10e53debae1c270 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 17 Jun 2009 14:48:34 -0300 Subject: new function 'luaO_arith' to perform basic arithmetic operations --- lobject.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 3172cda6..cd019899 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 2.24 2008/08/05 19:26:23 roberto Exp roberto $ +** $Id: lobject.h,v 2.25 2009/03/26 12:56:38 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -361,6 +361,7 @@ LUAI_DATA const TValue luaO_nilobject_; LUAI_FUNC int luaO_int2fb (unsigned int x); LUAI_FUNC int luaO_fb2int (int x); LUAI_FUNC int luaO_ceillog2 (lu_int32 x); +LUAI_FUNC lua_Number luaO_arith (int op, lua_Number v1, lua_Number v2); LUAI_FUNC int luaO_rawequalObj (const TValue *t1, const TValue *t2); LUAI_FUNC int luaO_str2d (const char *s, lua_Number *result); LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, -- cgit v1.2.3-55-g6feb