public static void LOGMASKED(int VERBOSE, int mask, device_t device, LOG_OUTPUT_FUNC log_output_func, string format, params object [] args) //#define LOGMASKED(mask, ...) do { if (VERBOSE & (mask)) (LOG_OUTPUT_FUNC)(__VA_ARGS__); } while (false) { if ((VERBOSE & mask) != 0) { if (log_output_func == null) { LOG_OUTPUT_FUNC_default(device, format, args); } else { log_output_func(device, format, args); } } }
public static void LOG(int VERBOSE, device_t device, LOG_OUTPUT_FUNC log_output_func, string format, params object [] args) { LOGMASKED(VERBOSE, LOG_GENERAL, device, log_output_func, format, args); } //LOGMASKED(LOG_GENERAL, __VA_ARGS__)