[ox/claw] Cleanup
This commit is contained in:
parent
9638dc52fe
commit
50715ff663
6
deps/ox/src/ox/claw/read.hpp
vendored
6
deps/ox/src/ox/claw/read.hpp
vendored
@ -44,13 +44,15 @@ Error readClaw(const char *buff, std::size_t buffLen, T *val) {
|
|||||||
MetalClawReader reader(bit_cast<uint8_t*>(header.data), buffLen);
|
MetalClawReader reader(bit_cast<uint8_t*>(header.data), buffLen);
|
||||||
return model(&reader, val);
|
return model(&reader, val);
|
||||||
}
|
}
|
||||||
#ifdef OX_USE_STDLIB
|
|
||||||
case ClawFormat::Organic:
|
case ClawFormat::Organic:
|
||||||
{
|
{
|
||||||
|
#ifdef OX_USE_STDLIB
|
||||||
OrganicClawReader reader(bit_cast<uint8_t*>(header.data), buffLen);
|
OrganicClawReader reader(bit_cast<uint8_t*>(header.data), buffLen);
|
||||||
return model(&reader, val);
|
return model(&reader, val);
|
||||||
}
|
#else
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
case ClawFormat::None:
|
case ClawFormat::None:
|
||||||
return OxError(1);
|
return OxError(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user