An OCaml library to get exit status as declared in `stdlib.h`
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
275 B

#include <stdlib.h>
#include <caml/mlvalues.h>
#include <caml/memory.h>
CAMLprim value get_success_code(value unit) {
return Val_int(EXIT_SUCCESS);
CAMLprim value get_failure_code(value unit) {
return Val_int(EXIT_FAILURE);