Add comment about comparing status strings

This commit is contained in:
Nigel Tao committed 2018-08-12 19:11:45 +10:00
1 parent c499f03bc7
commit 44e99d79cf
3 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -128,7 +128,8 @@ typedef struct {
// is not localized, and does not contain additional contextual information
// such as a source filename.
//
// Status strings are statically allocated and should never be free'd.
// Status strings are statically allocated and should never be free'd. They can
// be compared by the == operator and not just by strcmp.
typedef const char* wuffs_base__status;
extern const char* wuffs_base__error__bad_wuffs_version;