We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42ab88e commit 96b9e1bCopy full SHA for 96b9e1b
runtime/misc.c
@@ -202,3 +202,19 @@ int caml_runtime_warnings_active(void)
202
}
203
return 1;
204
205
+
206
+/* Flambda 2 invalid term markers */
207
208
+CAMLnoreturn_start
209
+void caml_flambda2_invalid (value message)
210
+CAMLnoreturn_end;
211
212
213
+{
214
+ fprintf (stderr, "[ocaml] [flambda2] Invalid code:\n%s\n\n",
215
+ String_val(message));
216
+ fprintf (stderr, "This might have arisen from a wrong use of [Obj.magic].\n");
217
+ fprintf (stderr, "Consider using [Sys.opaque_identity].\n");
218
+ abort ();
219
+}
220
0 commit comments