mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Eliminate a wuffs_base__return_empty_struct call
This commit is contained in:
1 parent
53760ce0fd
commit
02563641da
4 files changed
+16
-13
No files matched your search
@@ -14,8 +14,10 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
static inline void //
|
||||
wuffs_base__ignore_status(wuffs_base__status z) {}
|
||||
static inline wuffs_base__empty_struct //
|
||||
wuffs_base__ignore_status(wuffs_base__status z) {
|
||||
return ((wuffs_base__empty_struct){0});
|
||||
}
|
||||
|
||||
// WUFFS_BASE__MAGIC is a magic number to check that initializers are called.
|
||||
// It's not foolproof, given C doesn't automatically zero memory before use,
|
||||
|
||||
Reference in new issue
Block a user