From: Stephen Seo Date: Fri, 6 Sep 2024 07:32:47 +0000 (+0900) Subject: Debug print only in Debug builds X-Git-Tag: 1.0~63 X-Git-Url: https://git.seodisparate.com/tbm-server-edit-hover.png?a=commitdiff_plain;h=274f0af88762b19bd4eef77efc27f9d91ad081cb;p=c_simple_http Debug print only in Debug builds --- diff --git a/src/main.c b/src/main.c index 15fdb3c..1a883e7 100644 --- a/src/main.c +++ b/src/main.c @@ -128,6 +128,7 @@ int main(int argc, char **argv) { continue; } // DEBUG print received buf. +#ifndef NDEBUG for (unsigned int idx = 0; idx < C_SIMPLE_HTTP_RECV_BUF_SIZE && idx < read_ret; ++idx) { @@ -139,6 +140,7 @@ int main(int argc, char **argv) { } } puts(""); +#endif size_t response_size = 0; enum C_SIMPLE_HTTP_ResponseCode response_code;