X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Fcommon_stub.hpp;h=45aa0caedb58613b858c66f86bd1a974ffc552a1;hb=107df590ff69de765445e22caffd416ef13288d3;hp=6bfb57d787e30de51fc5ad8401a5de9e5103aec3;hpb=f1181ec507d05a2f9ff5371b282a26f8d6e1ff7e;p=SXSI%2Fxpathcomp.git diff --git a/src/common_stub.hpp b/src/common_stub.hpp index 6bfb57d..45aa0ca 100644 --- a/src/common_stub.hpp +++ b/src/common_stub.hpp @@ -13,6 +13,8 @@ extern "C" { #include } #include +#include +#include #define NoAlloc @@ -25,6 +27,7 @@ value alloc_custom_(char* name); template X& Obj_val(value v) { + assert(Tag_val(v) == Custom_tag); return * (X*) Data_custom_val(v); }