void pln() { static bool lnp = SC_DISABLE_COPYRIGHT_MESSAGE; if ( lnp || getenv("SYSTEMC_DISABLE_COPYRIGHT_MESSAGE") != 0 ) lnp = true; if ( const char * lnp_env = getenv("SC_COPYRIGHT_MESSAGE") ) { lnp = !strcmp( lnp_env, "DISABLE" ); } if( ! lnp ) { static const char indent[] = " "; std::string line; std::stringstream copyright; // temporary stream to print copyright line-wise with indentation copyright << sc_copyright(); cerr << endl; cerr << indent << sc_version() << endl; while( getline( copyright, line ) ) cerr << indent << line << endl; // regressions check point if( getenv( "SYSTEMC_REGRESSION" ) != 0 ) { cerr << "SystemC Simulation" << endl; } lnp = true; } }
void pln() { static bool lnp = false; if( ! lnp ) { ::std::cerr << ::std::endl; ::std::cerr << sc_version() << ::std::endl; ::std::cerr << sc_copyright() << ::std::endl; // regressions check point if( getenv( "SYSTEMC_REGRESSION" ) != 0 ) { ::std::cerr << "SystemC Simulation" << ::std::endl; } lnp = true; } }