Add more error codes for check_wuffs_version

This commit is contained in:
Nigel Tao committed 2018-05-29 14:33:15 +10:00
1 parent 87ab36f8c4
commit 1211e16e3c
16 files changed
+492 -320

No files matched your search

+1 -1
View File
@@ -192,7 +192,7 @@ func (g *gen) writeFuncImplHeader(b *buffer) error {
b.writes("}")
b.printf("if (self->private_impl.magic != WUFFS_BASE__MAGIC) {"+
"self->private_impl.status = %sERROR_INITIALIZER_NOT_CALLED; }", g.PKGPREFIX)
"self->private_impl.status = %sERROR_CHECK_WUFFS_VERSION_NOT_CALLED; }", g.PKGPREFIX)
b.writes("if (self->private_impl.status < 0) {")
if g.currFunk.suspendible {