Add extern "C" to function declarations in VPI tests.

These are necessary to link the executables. So far we have been saved
by one of the generated headers forward declaring these functions with
extern "C", but changing that header would break these tests.
This commit is contained in:
Geza Lore 2021-06-24 16:48:58 +01:00
parent f311a0a5a5
commit a198a3c1e1
5 changed files with 5 additions and 5 deletions

View File

@ -202,7 +202,7 @@ int mon_check_props() {
return 0;
}
int mon_check() {
extern "C" int mon_check() {
// Callback from initial block in monitor
if (int status = mon_check_props()) return status;
return 0; // Ok

View File

@ -213,7 +213,7 @@ void _mon_check_memory() {
}
}
int mon_check() {
extern "C" int mon_check() {
// Callback from initial block in monitor
_mon_check_memory();
return errors;

View File

@ -203,7 +203,7 @@ int _mon_check_param() {
return status;
}
int mon_check() {
extern "C" int mon_check() {
// Callback from initial block in monitor
if (int status = _mon_check_param()) return status;
return 0; // Ok

View File

@ -176,7 +176,7 @@ int _mon_check_unimpl(p_cb_data cb_data) {
return 0; // Ok
}
int mon_check() {
extern "C" int mon_check() {
// Callback from initial block in monitor
if (int status = _mon_check_unimpl(NULL)) return status;
return 0; // Ok

View File

@ -638,7 +638,7 @@ int _mon_check_vlog_info() {
return 0;
}
int mon_check() {
extern "C" int mon_check() {
// Callback from initial block in monitor
#ifdef TEST_VERBOSE
printf("-mon_check()\n");