Skip to content

Commit 67fdf4a

Browse files
committed
Fix STR/CONCAT macros
1 parent 316fc01 commit 67fdf4a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎tests/extension.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77

88
#include "pythoncapi_compat.h"
99

10-
#define STR(NAME) #NAME
11-
#define CONCAT(a, b) a ## b
10+
#define _STR(NAME) #NAME
11+
#define STR(NAME) _STR(NAME)
12+
#define _CONCAT(a, b) a ## b
13+
#define CONCAT(a, b) _CONCAT(a, b)
1214

1315
// No method and no module exec method needed, most basic C extension
1416

0 commit comments

Comments
 (0)