We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e60249 commit e855019Copy full SHA for e855019
lib/nimbase.h
@@ -470,6 +470,13 @@ typedef char* NCSTRING;
470
471
#define NIM_STRLIT_FLAG ((NU)(1) << ((NIM_INTBITS) - 2)) /* This has to be the same as system.strlitFlag! */
472
473
+/* unused in codegen after 2.2 but keep for compatibility: */
474
+#define STRING_LITERAL(name, str, length) \
475
+ static const struct { \
476
+ TGenericSeq Sup; \
477
+ NIM_CHAR data[(length) + 1]; \
478
+ } name = {{length, (NI) ((NU)length | NIM_STRLIT_FLAG)}, str}
479
+
480
/* declared size of a sequence/variable length array: */
481
#if defined(__cplusplus) && defined(__clang__)
482
# define SEQ_DECL_SIZE 1
0 commit comments