25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
|
- #pragma once
-
- #cmakedefine CPPMICROHTTPD_DEBUG
- #cmakedefine CPPMICROHTTPD_LOGGING_NONE
- #cmakedefine CPPMICROHTTPD_LOGGING_STDCOUT
- #cmakedefine CPPMICROHTTPD_LOGGING_CPPLOGGING
-
- #if defined(CPPMICROHTTPD_LOGGING_CPPLOGGING)
- #include <cpplogging/interface.h>
- #define cppmicrohttpd_log(p_level) \
- cpplogging_global_log(p_level)
- #define cppmicrohttpd_log_debug(...) \
- cppmicrohttpd_log(debug) << __VA_ARGS__
- #elif defined(CPPMICROHTTPD_LOGGING_STDCOUT)
- #include <iostream>
- #define cppmicrohttpd_log(p_level) \
- ::std::cout << #p_level << ' ' << __FILE__ << ':' << __LINE__ << " - "
- #ifdef CPPMICROHTTPD_DEBUG
- #define cppmicrohttpd_log_debug(...) \
- cppmicrohttpd_log(debug) << __VA_ARGS__
- #else
- #define cppmicrohttpd_log_debug(...) \
- do { } while (0)
- #endif
- #else
- #define cppmicrohttpd_log(...) \
- do { } while (0)
- #define cppmicrohttpd_log_debug(...) \
- do { } while (0)
- #endif
|