From d239bc94d2589f3935e6aaa1655119576a7c9cee Mon Sep 17 00:00:00 2001 From: mike dupont Date: Sun, 10 Dec 2023 15:07:39 -0500 Subject: [PATCH] makefile now building and exec crashing --- caml_src/step.ml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 caml_src/step.ml diff --git a/caml_src/step.ml b/caml_src/step.ml new file mode 100644 index 000000000..954823226 --- /dev/null +++ b/caml_src/step.ml @@ -0,0 +1,19 @@ +(* Copyright (C) 2017 Sio Kreuzer. All Rights Reserved. *) + +let init () = + Printf.printf "Initializing Game module...\n"; + flush stdout;; + +let shutdown () = + Printf.printf "Shutting down Game module...\n"; + flush stdout;; + +let step () = + (* Printf.printf "bla\n"; *) + flush stdout;; + +(* main/init *) +let () = + Callback.register "init_fn" init; + Callback.register "shutdown_fn" shutdown; + Callback.register "step_fn" step;;