mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-14 15:05:34 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user