X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=libs%2Fgeneric%2Fconstant.h;h=ab64ec393ca33ec3b10a04dd4dfcd18ff93dd8f8;hp=83817947faf57d6add630748556ff968fb321079;hb=0311de363b4b54196e89d254fefbcb79d39342af;hpb=74a6e43404e8a57fa1db66f9ee701cdd72ad0bdc diff --git a/libs/generic/constant.h b/libs/generic/constant.h index 83817947..ab64ec39 100644 --- a/libs/generic/constant.h +++ b/libs/generic/constant.h @@ -43,6 +43,7 @@ inline TextOutputStreamType& ostream_write( TextOutputStreamType& ostream, const #define TYPE_CONSTANT( name, value, type ) struct name ## _CONSTANT_ { typedef type Value; static Value evaluate() { return value; } }; typedef ConstantWrapper name #define STRING_CONSTANT( name, value ) TYPE_CONSTANT ( name, value, const char* ) #define INTEGER_CONSTANT( name, value ) TYPE_CONSTANT ( name, value, int ) +#define UINT_CONSTANT( name, value ) TYPE_CONSTANT ( name, value, unsigned int ) STRING_CONSTANT( EmptyString, "" );