8#ifndef BASIC_PLATFORM_REPORT_H
9#define BASIC_PLATFORM_REPORT_H
16static const char* log_enabled = std::getenv(
"GS_LOG");
17static const char* log_enabled_stdout = std::getenv(
"GS_LOG_STDOUT");
20 static char gs_log_buffer[100]; \
21 if (gs::log_enabled) { \
22 if (gs::log_enabled_stdout) { \
23 fprintf(stdout, "%s:%d ", __FILE__, __LINE__); \
24 fprintf(stdout, __VA_ARGS__); \
25 fprintf(stdout, "\n"); \
27 snprintf(gs::gs_log_buffer, sizeof(gs::gs_log_buffer), __VA_ARGS__); \
28 auto p = sc_core::sc_get_current_process_b(); \
30 sc_core::sc_report_handler::report(sc_core::SC_INFO, p->get_parent_object()->basename(), \
31 gs::gs_log_buffer, __FILE__, __LINE__); \
33 sc_core::sc_report_handler::report(sc_core::SC_INFO, "non_module", gs::gs_log_buffer, __FILE__, \
Tool which reads a Lua configuration file and sets parameters.
Definition biflow.cc:10