2026-05-23 01:35:18 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2026, Chloe M.
|
|
|
|
|
* Provided under the BSD-3 clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef CESCAL_LOG_H
|
|
|
|
|
#define CESCAL_LOG_H 1
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
#define cc_trace(fmt, ...) \
|
2026-05-23 02:20:48 -04:00
|
|
|
printf("[\033[34;40mtrace\033[0m]: " fmt, ##__VA_ARGS__)
|
2026-05-23 01:35:18 -04:00
|
|
|
#define cc_error(fmt, ...) \
|
2026-05-23 02:20:48 -04:00
|
|
|
printf("[\033[31;40merror\033[0m]: " fmt, ##__VA_ARGS__)
|
2026-05-23 01:35:18 -04:00
|
|
|
|
|
|
|
|
#endif /* !CESCAL_LOG_H */
|