trick/trick_source/sim_services/SimTime/SimTime_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

31 lines
651 B
C++

#include "trick/SimTime.hh"
#include "trick/simtime_proto.h"
extern Trick::SimTime * the_simtime ;
extern "C" double get_rettime(void) {
return (the_simtime->get_rettime()) ;
}
extern "C" double get_gmttime(void) {
return (the_simtime->get_gmttime()) ;
}
extern "C" double get_mettime(void) {
return (the_simtime->get_mettime()) ;
}
extern "C" GMTTIME * get_rettime_struct(void) {
return (the_simtime->get_rettime_struct()) ;
}
extern "C" GMTTIME * get_gmttime_struct(void) {
return (the_simtime->get_gmttime_struct()) ;
}
extern "C" GMTTIME * get_mettime_struct(void) {
return (the_simtime->get_mettime_struct()) ;
}