Add wuffs_foo__bar__initialize methods

This commit is contained in:
Nigel Tao committed 2019-02-09 12:54:02 +11:00
1 parent 10ead58e2e
commit 8794a586ac
10 files changed
+348 -103

No files matched your search

@@ -66,6 +66,14 @@
#define WUFFS_BASE__WARN_UNUSED_RESULT
#endif
// Flags for wuffs_foo__bar__initialize functions.
// WUFFS_INITIALIZE__ALREADY_ZEROED means that the "self" receiver struct value
// has already been set to all zeroes.
#define WUFFS_INITIALIZE__ALREADY_ZEROED ((uint32_t)0x00000001)
// --------
// wuffs_base__empty_struct is used when a Wuffs function returns an empty
// struct. In C, if a function f returns void, you can't say "x = f()", but in
// Wuffs, if a function g returns empty, you can say "y = g()".