mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Generate C code for "if foo?()".
This commit is contained in:
1 parent
f4db300358
commit
8882085f91
5 files changed
+74
-9
No files matched your search
@@ -5,11 +5,10 @@ pub error "bad GIF header"
|
||||
|
||||
pub struct decoder?(
|
||||
lzw lzw_decoder,
|
||||
temporary_hack u32,
|
||||
)
|
||||
|
||||
pub func decoder.decode?(dst ptr buf1, src ptr buf1)() {
|
||||
if this.temporary_hack != 0x47 {
|
||||
if (in.src.read_u8?() != 0x47) or (in.src.read_u8?() != 0x49) {
|
||||
return error "bad GIF header"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user