feat(debug): adding the log macro
This commit is contained in:
parent
bb38065e50
commit
d4478022d0
2 changed files with 9 additions and 2 deletions
|
|
@ -6,15 +6,22 @@
|
||||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/05/12 14:16:03 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
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
#define LOG std::endl << CLR_CYAN << "[DEBUG] " << __FILE__ << ":" << __LINE__ << std::endl << CLR_RESET
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
#define DEBUG 0
|
#define DEBUG 0
|
||||||
|
#define LOG ""
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "color.hpp"
|
#include "color.hpp"
|
||||||
#include "server.hpp"
|
#include "server.hpp"
|
||||||
|
|
||||||
|
unsigned short int valid_port(char *input);
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/05/13 11:06:56 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 */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue