otherlibs/dune-site/test/plugin_require_thread.t/app.ml
raw| 1 | (* load all the available plugins *) |
| 2 | let () = |
| 3 | try |
| 4 | Sites.Plugins.Plugins.load_all () |
| 5 | with exn -> |
| 6 | Printf.printf "Error during dynamic linking: %s" (Printexc.to_string exn) |
| 7 | |
| 8 | let () = print_endline "Main app starts..." |
| 9 | (* Execute the code registered by the plugins *) |
| 10 | let () = Queue.iter (fun f -> f ()) Registration.todo |