setComment() will assert if comment does not start with / (or if it were NULL, which would have seg-faulted before).

This commit is contained in:
Christopher Dunn
2007-03-23 07:05:19 +00:00
parent 8386d3efe1
commit ca21256395
2 changed files with 6 additions and 0 deletions

View File

@@ -317,8 +317,10 @@ namespace Json {
// EnumValues enumValues() const;
//# endif
/// Comments must be //... or /* ... */
void setComment( const char *comment,
CommentPlacement placement );
/// Comments must be //... or /* ... */
void setComment( const std::string &comment,
CommentPlacement placement );
bool hasComment( CommentPlacement placement ) const;