mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
42a0bed351
* Prefixed ccan headers * Remove unprefixed names in ccan/build_assert * Remove unprefixed names in ccan/check_type * Remove unprefixed names in ccan/container_of * Remove unprefixed names in ccan/list Co-authored-by: Samuel Williams <samuel.williams@oriontransfer.co.nz>
17 lines
533 B
C
17 lines
533 B
C
/* CC0 (Public domain) - see ccan/licenses/CC0 file for details */
|
|
#ifndef CCAN_STR_H
|
|
#define CCAN_STR_H
|
|
/**
|
|
* ccan_stringify - Turn expression into a string literal
|
|
* @expr: any C expression
|
|
*
|
|
* Example:
|
|
* #define PRINT_COND_IF_FALSE(cond) \
|
|
* ((cond) || printf("%s is false!", ccan_stringify(cond)))
|
|
*/
|
|
#define stringify(expr) ccan_stringify_1(expr)
|
|
#define ccan_stringify(expr) ccan_stringify_1(expr)
|
|
/* Double-indirection required to stringify expansions */
|
|
#define ccan_stringify_1(expr) #expr
|
|
|
|
#endif /* CCAN_STR_H */
|