From d4478022d02adf0e09fd6087ba436b230eb2f6f1 Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 13 May 2025 12:06:09 +0200 Subject: [PATCH] feat(debug): adding the log macro --- include/core/core.hpp | 9 ++++++++- include/core/server.hpp | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/include/core/core.hpp b/include/core/core.hpp index 125d5fc..0004c95 100644 --- a/include/core/core.hpp +++ b/include/core/core.hpp @@ -6,15 +6,22 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/05/12 14:16:03 by rparodi #+# #+# */ -/* Updated: 2025/05/13 11:06:48 by rparodi ### ########.fr */ +/* Updated: 2025/05/13 11:59:01 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ #pragma once +#ifdef DEBUG +#define LOG std::endl << CLR_CYAN << "[DEBUG] " << __FILE__ << ":" << __LINE__ << std::endl << CLR_RESET +#endif + #ifndef DEBUG #define DEBUG 0 +#define LOG "" #endif #include "color.hpp" #include "server.hpp" + +unsigned short int valid_port(char *input); diff --git a/include/core/server.hpp b/include/core/server.hpp index f19a6e1..7e13b9c 100644 --- a/include/core/server.hpp +++ b/include/core/server.hpp @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/05/13 11:06:56 by rparodi #+# #+# */ -/* Updated: 2025/05/13 11:08:41 by rparodi ### ########.fr */ +/* Updated: 2025/05/13 11:42:11 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */