diff options
Diffstat (limited to 'nasmlib.h')
-rw-r--r-- | nasmlib.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -205,6 +205,8 @@ int nasm_memicmp(const char *, const char *, size_t); char *nasm_strsep(char **stringp, const char *delim); #endif +/* This returns the numeric value of a given 'digit'. */ +#define numvalue(c) ((c) >= 'a' ? (c) - 'a' + 10 : (c) >= 'A' ? (c) - 'A' + 10 : (c) - '0') /* * Convert a string into a number, using NASM number rules. Sets |