diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-07-07 19:51:53 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-07-07 19:51:53 -0700 |
commit | b2bbafb67457835c4cf9061610ea9549740669c2 (patch) | |
tree | faac999c7dc86737c97d585c7826ae6c5799da90 /upb_string.h | |
parent | d7b666ecf47f7f5269ad5b7f826bca98f7350746 (diff) |
Header file changes for C++ compatibility.
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} |