Files
mercury/samples/c_interface/cplusplus_calls_mercury/cpp_main.h
Fergus Henderson 0b1322d17c Add an example of C++ code caling Mercury code.
Estimated hours taken: 0.5

samples/cplusplus_calls_mercury/*:
	Add an example of C++ code caling Mercury code.
1997-01-31 18:57:02 +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