Skip to content

Commit

Permalink
improve TK_STRINGIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Nov 17, 2024
1 parent 4a23dc9 commit 123c45e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/changes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# 最新动态
2024/11/17
* 完善 TK_STRINGIZE(感谢兆坤提供补丁)

2024/11/15
* 修复拼写错误(感谢兆坤提供补丁)
Expand Down
3 changes: 2 additions & 1 deletion src/tkc/types_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ typedef int socklen_t;
#define FALSE 0
#endif /*FALSE*/

#define TK_STRINGIZE(symbol) #symbol
#define _TK_STRINGIZE_(symbol) #symbol
#define TK_SRTINGIZE(macro) _TK_STRINGIZE_(macro)

#if defined(__GNUC__) && !defined(__cplusplus)
typedef _Bool bool_t;
Expand Down

0 comments on commit 123c45e

Please sign in to comment.