diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-10-22 07:39:23 -0700 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-05 17:20:18 -0800 |
commit | 68785af4da7727238c86dcf8858e0b5975bc988e (patch) | |
tree | cb120620d454ffdd2cd2246dfdac0f2f65bbb8a9 /src | |
parent | 0f3117c19d3b0bf8d693b25c2e97ff874d8acc99 (diff) | |
download | openocd_libswd-68785af4da7727238c86dcf8858e0b5975bc988e.tar.gz openocd_libswd-68785af4da7727238c86dcf8858e0b5975bc988e.tar.bz2 openocd_libswd-68785af4da7727238c86dcf8858e0b5975bc988e.tar.xz openocd_libswd-68785af4da7727238c86dcf8858e0b5975bc988e.zip |
Add stringify macros in src/helper/types.h.
Diffstat (limited to 'src')
-rw-r--r-- | src/helper/types.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |