15
15
#include <stddef.h>
16
16
#include <stdarg.h>
17
17
#include <stdbool.h>
18
+ #include <basics.h>
18
19
19
20
// ANSI color codes for text formatting
20
- #define ANSI_COLOR_RESET "\x1b[0m"
21
- #define ANSI_COLOR_RED "\x1b[91m"
22
- #define ANSI_COLOR_YELLOW "\x1b[93m"
23
- #define ANSI_COLOR_BLUE "\x1b[36m"
24
- #define ANSI_COLOR_GREEN "\x1b[32m"
21
+ #define reset_color "\x1b[0m"
22
+ #define red_color "\x1b[91m"
23
+ #define yellow_color "\x1b[93m"
24
+ #define blue_color "\x1b[36m"
25
+ #define green_color "\x1b[32m"
25
26
26
27
/**
27
28
* @brief Display a warning message.
31
32
* @param message The warning message to be displayed.
32
33
* @param file The file name where the warning occurred.
33
34
*/
34
- void warn (const char * message , const char * file );
35
+ void warn (cstring message , cstring file );
35
36
36
37
/**
37
38
* @brief Display an error message.
@@ -41,7 +42,7 @@ void warn(const char *message, const char* file);
41
42
* @param message The error message to be displayed.
42
43
* @param file The file name where the error occurred.
43
44
*/
44
- void error (const char * message , const char * file );
45
+ void error (cstring message , cstring file );
45
46
46
47
/**
47
48
* @brief Display an informational message.
@@ -51,7 +52,7 @@ void error(const char *message, const char* file);
51
52
* @param message The informational message to be displayed.
52
53
* @param file The file name where the information is coming from.
53
54
*/
54
- void info (const char * message , const char * file );
55
+ void info (cstring message , cstring file );
55
56
56
57
/**
57
58
* @brief Display a success message.
@@ -61,7 +62,7 @@ void info(const char *message, const char* file);
61
62
* @param message The success message to be displayed.
62
63
* @param file The file name associated with the success.
63
64
*/
64
- void done (const char * message , const char * file );
65
+ void done (cstring message , cstring file );
65
66
66
67
/* Normal Hybrid printing functions ahead */
67
68
@@ -93,6 +94,6 @@ void printhex(int hex);
93
94
* @param format
94
95
* @param ...
95
96
*/
96
- void printf (const char * format , ...);
97
+ void printf (cstring format , ...);
97
98
98
99
#endif
0 commit comments