mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-19 15:54:18 +00:00
samples/c_interface/simpler_c_calls_mercury/README: samples/c_interface/simpler_c_calls_mercury/c_main.c: samples/c_interface/simpler_c_calls_mercury/mercury_lib.m: samples/c_interface/simpler_cplusplus_calls_mercury/README: samples/c_interface/simpler_cplusplus_calls_mercury/cpp_main.cc: samples/c_interface/simpler_cplusplus_calls_mercury/mercury_lib.m: Update to use the new mercury_init() and mercury_terminate() functions.
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.