mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-06 17:59:52 +00:00
perl: add a strong assertion
This commit is contained in:
parent
2b65f81e23
commit
4f1207a38c
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue