aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-02-10 17:36:29 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:14 -0300
commit2c927a298b845cbf08a551614884e2a4a12482a9 (patch)
treefc927fbb6502aab56cbc50a26f31d25df5e5871a /typesystem.h
parent27f41bcac569037d1440b960d16f149b5499870a (diff)
Added an alias for the confusing index values for the ArgumentOwner class.
Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'typesystem.h')
-rw-r--r--typesystem.h8
1 files changed, 7 insertions, 1 deletions
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;