From: Zachary T Welch Date: Thu, 22 Oct 2009 14:39:23 +0000 (-0700) Subject: Add stringify macros in src/helper/types.h. X-Git-Tag: v0.4.0-rc1~951 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=68785af4da7727238c86dcf8858e0b5975bc988e;p=openocd Add stringify macros in src/helper/types.h. --- diff --git a/src/helper/types.h b/src/helper/types.h index eb836c24..50f5fe2d 100644 --- a/src/helper/types.h +++ b/src/helper/types.h @@ -56,6 +56,10 @@ typedef bool _Bool; #endif /* HAVE_STDBOOL_H */ +/// turns a macro argument into a string constant +#define stringify(s) __stringify(s) +#define __stringify(s) #s + /* DANGER!!!! here be dragons! * * Leave these fn's as byte accesses because it is safe