mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-19 15:54:18 +00:00
Estimated hours taken: 0.25 Branches: main bytecode/Mmakefile: compiler/Mmakefile: extras/aditi/Mmakefile: extras/curses/sample/Mmakefile: extras/graphics/samples/calc/Mmakefile: extras/graphics/samples/maze/Mmakefile: extras/graphics/samples/pent/Mmakefile: extras/morphine/non-regression-tests/Mmakefile: samples/c_interface/simpler_c_calls_mercury/Mmakefile: samples/c_interface/simpler_cplusplus_calls_mercury/Mmakefile: tests/benchmarks/Mmakefile: tests/debugger/Mmakefile: tests/debugger/declarative/Mmakefile: tests/hard_coded/Mmakefile: Use C2INITARGS or MLFLAGS instead of C2INITFLAGS.
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.