projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Follow the changes in XMLTree API: xml_tree::subtree_elements() does
[SXSI/xpathcomp.git]
/
src
/
common_stub.hpp
diff --git
a/src/common_stub.hpp
b/src/common_stub.hpp
index
3e874b7
..
45aa0ca
100644
(file)
--- a/
src/common_stub.hpp
+++ b/
src/common_stub.hpp
@@
-14,6
+14,7
@@
extern "C" {
}
#include <typeinfo>
#include <cstdio>
+#include <cassert>
#define NoAlloc
@@
-26,6
+27,7
@@
value alloc_custom_(char* name);
template <class X> X& Obj_val(value v)
{
+ assert(Tag_val(v) == Custom_tag);
return * (X*) Data_custom_val(v);
}