trick/trick_source/sim_services/DebugPause/DebugPause_c_intf.cpp
jmpenn fccf32093b
Explicitly specify void arg for C functions that take no arguments. (#670)
* Clock empty args to void

* command_line func empty args to void

* DataRecord func empty args to void

* debug_pause func empty args to void

* echojobs func empty args to void

* ExternalApplication func empty args to void

* FrameLog func empty args to void

* MasterSlave func empty args to void

* MonteCarlo func empty args to void

* outdllist func proto empty args to void

* sie func empty args to void

* SimTime func empty args to void

* UnitTest func empty args to void

* var_server func empty args to void

* wcs func empty args to void
2018-09-19 11:25:04 -05:00

41 lines
1.1 KiB
C++

#include <stdio.h>
#include "trick/DebugPause.hh"
/* Global singleton pointer to the echo jobs class */
extern Trick::DebugPause * the_debug_pause ;
/*************************************************************************/
/* These routines are the "C" interface to echo jobs instrumentation */
/*************************************************************************/
/**
* @relates Trick::DebugPause
* @copydoc Trick::DebugPause::debug_pause_on
* C wrapper for Trick::DebugPause::debug_pause_on
*/
extern "C" int debug_pause_on(void) {
if (the_debug_pause != NULL) {
return the_debug_pause->debug_pause_on() ;
}
return(0) ;
}
/**
* @relates Trick::DebugPause
* @copydoc Trick::DebugPause::debug_pause_off
* C wrapper for Trick::DebugPause::debug_pause_off
*/
extern "C" int debug_pause_off(void) {
if (the_debug_pause != NULL) {
return the_debug_pause->debug_pause_off() ;
}
return(0) ;
}
extern "C" int debug_signal(void) {
if (the_debug_pause != NULL) {
return the_debug_pause->debug_signal() ;
}
return(0) ;
}