mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 23:36:43 +00:00
fccf32093b
* 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
41 lines
1.1 KiB
C++
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) ;
|
|
}
|