mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Make wuffs_base__status a struct
This commit is contained in:
1 parent
c50f16e58b
commit
e6db7f6a40
24 files changed
+677
-499
No files matched your search
@@ -59,8 +59,8 @@ uint8_t src_buffer[SRC_BUFFER_SIZE];
|
||||
int main(int argc, char** argv) {
|
||||
wuffs_crc32__ieee_hasher h;
|
||||
wuffs_base__status status = h.initialize(sizeof h, WUFFS_VERSION, 0);
|
||||
if (status) {
|
||||
fprintf(stderr, "%s\n", wuffs_base__status__message(status));
|
||||
if (!status.is_ok()) {
|
||||
fprintf(stderr, "%s\n", status.message());
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user