summaryrefslogtreecommitdiff
path: root/upb_string.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-07-07 19:51:53 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-07-07 19:51:53 -0700
commitb2bbafb67457835c4cf9061610ea9549740669c2 (patch)
treefaac999c7dc86737c97d585c7826ae6c5799da90 /upb_string.h
parentd7b666ecf47f7f5269ad5b7f826bca98f7350746 (diff)
Header file changes for C++ compatibility.
Diffstat (limited to 'upb_string.h')
-rw-r--r--upb_string.h1
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}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback