style(git): removing the creation of the massif out
This commit is contained in:
parent
4a17d88d80
commit
eb56b111b1
3 changed files with 74 additions and 0 deletions
39
sources/core/logs.cpp
Normal file
39
sources/core/logs.cpp
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* logs.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/05/15 12:29:56 by rparodi #+# #+# */
|
||||
/* Updated: 2025/05/15 12:38:56 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "logs.hpp"
|
||||
|
||||
void print_debug(const char *str, const char *file, int line)
|
||||
{
|
||||
if (DEBUG)
|
||||
std::cout << CLR_CYAN << "\tDebug: " << str << "(" << file << ":" << line << ")" << CLR_RESET << std::endl;
|
||||
}
|
||||
|
||||
void print_error(const char *str, const char *file, int line)
|
||||
{
|
||||
std::cerr << CLR_RED << "\tError: " << str << "(" << file << ":" << line << ")" << CLR_RESET << std::endl;
|
||||
}
|
||||
|
||||
void print_warning(const char *str, const char *file, int line)
|
||||
{
|
||||
std::cerr << CLR_YELLOW << "\tWarning: " << str << "(" << file << ":" << line << ")" << CLR_RESET << std::endl;
|
||||
}
|
||||
|
||||
void print_info(const char *str, const char *file, int line)
|
||||
{
|
||||
std::cout << CLR_GREY << "\tInfo: " << str << "(" << file << ":" << line << ")" << CLR_RESET << std::endl;
|
||||
}
|
||||
|
||||
void print_success(const char *str, const char *file, int line)
|
||||
{
|
||||
std::cout << CLR_GREEN << "\tSuccess: " << str << "(" << file << ":" << line << ")" << CLR_RESET << std::endl;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue