bs-platform
Version:
bucklescript compiler, ocaml standard libary by bucklescript and its required runtime support
49 lines (41 loc) • 794 B
JavaScript
;
var id = {
contents: 0
};
function caml_set_oo_id(b) {
b[1] = id.contents;
id.contents = id.contents + 1;
return b;
}
function caml_fresh_oo_id(param) {
id.contents = id.contents + 1;
return id.contents;
}
function create(str) {
var v_001 = caml_fresh_oo_id(undefined);
var v = /* tuple */[
str,
v_001
];
v.tag = 248;
return v;
}
function caml_is_extension(e) {
if (e === undefined) {
return false;
}
if (e.tag === 248) {
return true;
}
var slot = e[0];
if (slot !== undefined) {
return slot.tag === 248;
} else {
return false;
}
}
exports.caml_set_oo_id = caml_set_oo_id;
exports.caml_fresh_oo_id = caml_fresh_oo_id;
exports.create = create;
exports.caml_is_extension = caml_is_extension;
/* No side effect */