diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-03-30 16:36:31 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-30 20:36:31 +1300 |
commit | 42a0bed351979cb4a59c641fa5f03e49609561fd (patch) | |
tree | 615a891e8fa9fbf6f3747d070fc03302341974dc /ccan/str | |
parent | 8d27d00af514153819e44eb8e5f4f8631830ae55 (diff) |
Prefix ccan headers (#4568)
* 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 <[email protected]>
Notes
Notes:
Merged-By: ioquatix <[email protected]>
Diffstat (limited to 'ccan/str')
-rw-r--r-- | ccan/str/str.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ccan/str/str.h b/ccan/str/str.h index 9a9da9cd3f..6d4cf62423 100644 --- a/ccan/str/str.h +++ b/ccan/str/str.h @@ -2,15 +2,16 @@ #ifndef CCAN_STR_H #define CCAN_STR_H /** - * stringify - Turn expression into a string literal + * ccan_stringify - Turn expression into a string literal * @expr: any C expression * * Example: * #define PRINT_COND_IF_FALSE(cond) \ - * ((cond) || printf("%s is false!", stringify(cond))) + * ((cond) || printf("%s is false!", ccan_stringify(cond))) */ -#define stringify(expr) stringify_1(expr) +#define stringify(expr) ccan_stringify_1(expr) +#define ccan_stringify(expr) ccan_stringify_1(expr) /* Double-indirection required to stringify expansions */ -#define stringify_1(expr) #expr +#define ccan_stringify_1(expr) #expr #endif /* CCAN_STR_H */ |