James Kuszmaul | b13e13f | 2023-11-22 20:44:04 -0800 | [diff] [blame^] | 1 | // Copyright (c) FIRST and other WPILib contributors. |
| 2 | // Open Source Software; you can modify and/or share it under the terms of |
| 3 | // the WPILib BSD license file in the root directory of this project. |
| 4 | |
| 5 | #pragma once |
| 6 | |
| 7 | #include <fmt/format.h> |
| 8 | |
| 9 | // #define WPINET_WEBSOCKET_VERBOSE_DEBUG |
| 10 | // #define WPINET_WEBSOCKET_VERBOSE_DEBUG_CONTENT |
| 11 | |
| 12 | #ifdef __clang__ |
| 13 | #pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments" |
| 14 | #endif |
| 15 | |
| 16 | #ifdef WPINET_WEBSOCKET_VERBOSE_DEBUG |
| 17 | #define WS_DEBUG(format, ...) \ |
| 18 | ::fmt::print(FMT_STRING(format) __VA_OPT__(, ) __VA_ARGS__) |
| 19 | #else |
| 20 | #define WS_DEBUG(fmt, ...) |
| 21 | #endif |