// Stuff that is relatively "core" and is used in other defines/helpers //Returns the hex value of a decimal number //len == length of returned string #define num2hex(X, len) num2text(X, len, 16) //Returns an integer given a hex input, supports negative values "-ff" //skips preceding invalid characters #define hex2num(X) text2num(X, 16) /// Stringifies whatever you put into it. #define STRINGIFY(argument) #argument /// subtypesof(), typesof() without the parent path #define subtypesof(typepath) ( typesof(typepath) - typepath )