static void failwith_xl(int error, char *fname)
{
+ CAMLparam0();
CAMLlocal1(arg);
static value *exc = NULL;
Store_field(arg, 1, caml_copy_string(fname));
caml_raise_with_arg(*exc, arg);
+ CAMLreturn0;
}
CAMLprim value stub_raise_exception(value unit)
bool b = Bool_val(Some_val(v));
libxl_defbool_set(&db, b);
}
- return db;
+ CAMLreturnT(libxl_defbool, db);
}
static value Val_hwcap(libxl_hwcap *c_val)
static char *String_option_val(value v)
{
+ CAMLparam1(v);
char *s = NULL;
if (v != Val_none)
s = dup_String_val(Some_val(v));
- return s;
+ CAMLreturnT(char *, s);
}
#include "_libxl_types.inc"