projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refresh the installation procedure.
[SXSI/xpathcomp.git]
/
src
/
common_stub.hpp
diff --git
a/src/common_stub.hpp
b/src/common_stub.hpp
index
ad15256
..
45aa0ca
100644
(file)
--- a/
src/common_stub.hpp
+++ b/
src/common_stub.hpp
@@
-1,5
+1,5
@@
-#ifndef COMMON_STUB_H_
-#define COMMON_STUB_H_
+#ifndef COMMON_STUB_H
PP
_
+#define COMMON_STUB_H
PP
_
extern "C" {
#define CAML_NAME_SPACE
extern "C" {
#define CAML_NAME_SPACE
@@
-13,6
+13,8
@@
extern "C" {
#include <caml/bigarray.h>
}
#include <typeinfo>
#include <caml/bigarray.h>
}
#include <typeinfo>
+#include <cstdio>
+#include <cassert>
#define NoAlloc
#define NoAlloc
@@
-25,6
+27,7
@@
value alloc_custom_(char* name);
template <class X> X& Obj_val(value v)
{
template <class X> X& Obj_val(value v)
{
+ assert(Tag_val(v) == Custom_tag);
return * (X*) Data_custom_val(v);
}
return * (X*) Data_custom_val(v);
}