Define cmb_logger_error

Define Documentation

cmb_logger_error(fp, ...)

Wrapper for an error message. Terminates the current trial if called from within a worker thread, continuing execution from the next trial. Exits the program with exit code EXIT_FAILURE if called from outside a worker thread. Written as a macro to provide the calling function name and line number automatically.

Parameters:
  • fp – File pointer, possibly stderr

  • ... – A printf-like format string, followed by the arguments to the format string.