]> git.xonotic.org Git - xonotic/gmqcc.git/commit
Implemented concept of enumeration attributes (can be further extended, but currently...
authorDale Weiler <killfieldengine@gmail.com>
Fri, 8 Mar 2013 08:01:45 +0000 (08:01 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 8 Mar 2013 08:01:45 +0000 (08:01 +0000)
commitb971ddec3a7bb56ac6c9bc094916828283838adf
tree29362632060fb9bb9aae05bf1bf03200fdcc2d59
parent479f3b934304a1e0b18fc288efafda3a680fe159
Implemented concept of enumeration attributes (can be further extended, but currently only "flag" is implemented as an attribute).  An enumeration with a flag attribute will act as a "flagged enumeration", one that automatically handles exponentiation of the constants defined inside it, i.e enum : flag { A, B, C }, A,B,C will equal 2, 4, 8.
parser.c
tests/enum.qc
tests/enum.tmpl