diff options
Diffstat (limited to 'upb_string.h')
-rw-r--r-- | upb_string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/upb_string.h b/upb_string.h index 44bc653..7a05811 100644 --- a/upb_string.h +++ b/upb_string.h @@ -65,6 +65,7 @@ bool upb_strreadfile(const char *filename, struct upb_string *data); /* Allows defining upb_strings as literals, ie: * struct upb_string str = UPB_STRLIT("Hello, World!\n"); + * Doesn't work with C++ due to lack of struct initializer syntax. */ #define UPB_STRLIT(strlit) {.ptr=strlit, .byte_len=sizeof(strlit)-1} |