Files
mercury/samples/c_interface/mercury_calls_cplusplus/cpp_main.h
Fergus Henderson d988e8c82e Add an example of Mercury calling C++ code.
Estimated hours taken: 0.25

samples/c_interface/mercury_calls_cplusplus/*:
	Add an example of Mercury calling C++ code.
1997-01-31 19:04:47 +00:00

15 lines
286 B
C

/*
** Function prototype for the cpp_main() function defined in cpp_main.c.
** Note: this is a C++ function, but it needs to be declared as
** extern "C" so that it can be called from Mercury.
*/
#ifdef __cplusplus
extern "C" {
#endif
void cpp_main(void);
#ifdef __cplusplus
}
#endif