mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-30 16:54:41 +00:00
Estimated hours taken: 0.25 samples/c_interface/simpler_cplusplus_calls_mercury/cpp_main.cc: #include "mercury_init.h" instead of "init.h".
This directory contains an example program with a C++ main() function where C++ calls Mercury. This interface is simpler than having a Mercury main/2 call a cpp_main() function which then calls back Mercury.