mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-21 15:10:01 +01:00
perl: add a strong assertion
This commit is contained in:
parent
2b65f81e23
commit
4f1207a38c
@ -65,6 +65,9 @@ load_bool(pTHX_ const char* const name) {
|
||||
LEAVE;
|
||||
assert(sv);
|
||||
assert(sv_isobject(sv));
|
||||
if(!SvOK(sv)) {
|
||||
croak("Oops: Failed to load %"SVf, name);
|
||||
}
|
||||
return sv;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user