mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-21 23:56:55 +02:00
perl: add a strong assertion
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user