From 2c927a298b845cbf08a551614884e2a4a12482a9 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Thu, 10 Feb 2011 17:36:29 -0300 Subject: Added an alias for the confusing index values for the ArgumentOwner class. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed by Hugo Parente Reviewed by Renato Araújo --- typesystem.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'typesystem.h') diff --git a/typesystem.h b/typesystem.h index 5b0e7ca7b..bd99fd6c6 100644 --- a/typesystem.h +++ b/typesystem.h @@ -109,7 +109,13 @@ struct ArgumentOwner Add = 0x01, Remove = 0x02 }; - ArgumentOwner() : action(ArgumentOwner::Invalid), index(-2) {} + enum { + InvalidIndex = -2, + ThisIndex = -1, + ReturnIndex = 0, + FirstArgumentIndex = 1 + }; + ArgumentOwner() : action(ArgumentOwner::Invalid), index(ArgumentOwner::InvalidIndex) {} Action action; int index; -- cgit v1.2.3