mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-14 21:35:49 +00:00
Estimated hours taken: 0.25 Branches: main samples/c_interface/c_calls_mercury/c_main.c: samples/c_interface/cplusplus_calls_mercury/cpp_main.cc: samples/c_interface/simpler_c_calls_mercury/main.c: samples/c_interface/simpler_cplusplus_calls_mercury/main.cc: Add missing `MR_' prefixes.
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.