ADD_PRIMITIVE_HANDLER
Defined in carb/launcher/LauncherUtils.h
-
ADD_PRIMITIVE_HANDLER(type, fmt)
Macro to add other [almost identical] variants of the add() and operator+=() functions.
Note that this unfortunately can’t be a template because a ‘const char*’ value is not allowed as a template argument since it doesn’t lead to a unique instantiation. This is similar to the reasoning for a float value not being allowed as a template argument. Using a macro here saves 140+ lines of code (mostly duplicated) and documentation.