mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Add a status.msg field
This commit is contained in:
1 parent
2a32a86a6c
commit
ff85296c1c
3 files changed
+6
-2
No files matched your search
@@ -134,6 +134,7 @@ typedef struct {
|
||||
// details. Use methods such as wuffs_base__status__is_error instead.
|
||||
typedef struct {
|
||||
int32_t code;
|
||||
const char* msg;
|
||||
} wuffs_base__status;
|
||||
|
||||
#define WUFFS_BASE__STATUS_OK 0 // 0x00000000
|
||||
@@ -157,6 +158,7 @@ static inline wuffs_base__status //
|
||||
WUFFS_BASE__MAKE_STATUS(int32_t code) {
|
||||
return ((wuffs_base__status){
|
||||
.code = code,
|
||||
.msg = NULL,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user