27 lines
1.3 KiB
C++
27 lines
1.3 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* Log.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/11/30 16:30:53 by adjoly #+# #+# */
|
|
/* Updated: 2024/12/11 14:09:08 by adjoly ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
void log(std::string emoji, std::string what, std::string who, std::string str) {
|
|
#ifdef VERBOSE
|
|
if (who.empty())
|
|
std::cout << "「" << emoji << "」" << what << ": " << str << std::endl;
|
|
else
|
|
std::cout << "「" << emoji << "」" << what << "(" << who << "): " << str << std::endl;
|
|
#else
|
|
(void)emoji, (void)what, (void)who, (void)str;
|
|
#endif
|
|
}
|
|
|