mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-31 07:58:20 +02: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;
|
LEAVE;
|
||||||
assert(sv);
|
assert(sv);
|
||||||
assert(sv_isobject(sv));
|
assert(sv_isobject(sv));
|
||||||
|
if(!SvOK(sv)) {
|
||||||
|
croak("Oops: Failed to load %"SVf, name);
|
||||||
|
}
|
||||||
return sv;
|
return sv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user