projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f3117c
)
Add stringify macros in src/helper/types.h.
author
Zachary T Welch
<zw@superlucidity.net>
Thu, 22 Oct 2009 14:39:23 +0000
(07:39 -0700)
committer
Zachary T Welch
<zw@superlucidity.net>
Fri, 6 Nov 2009 01:20:18 +0000
(17:20 -0800)
src/helper/types.h
patch
|
blob
|
history
diff --git
a/src/helper/types.h
b/src/helper/types.h
index eb836c2458cb9d7f221790b48f2e02190b7cf746..50f5fe2d4c1dc6d3e2418e482137e41e5d87dac8 100644
(file)
--- 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