style: error message are now in red
This commit is contained in:
parent
66a523d4b5
commit
f48e586896
5 changed files with 38 additions and 8 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/30 16:30:26 by rparodi #+# #+# */
|
||||
/* Updated: 2024/10/30 17:01:03 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/10/31 11:17:40 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -27,6 +27,7 @@
|
|||
# define BONUS 0
|
||||
# endif
|
||||
|
||||
void print_error(char *msg);
|
||||
bool ft_parse_args(int argc, char *argv[]);
|
||||
int main(int argc, char *argv[]);
|
||||
|
||||
|
|
|
|||
|
|
@ -6,14 +6,17 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/30 16:43:20 by rparodi #+# #+# */
|
||||
/* Updated: 2024/10/31 10:38:21 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/10/31 11:23:20 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef MESSAGE_ERROR_H
|
||||
# define MESSAGE_ERROR_H
|
||||
|
||||
# define ERR_ARGS_COUNT "Error:\nYou have to give only the map on arguments !\n"
|
||||
# define INV_NAME_MAP "Error:\nThe name of the map have to finish by `.cub` !\n"
|
||||
# define ERR_ARGS_COUNT "You have to give only the map on arguments !\n"
|
||||
# define INV_NAME_MAP "The name of the map have to finish by `.cub` !\n"
|
||||
|
||||
# define RED "\x1b[31m"
|
||||
# define BOLD_RED "\033[1;31m"
|
||||
# define RESET "\x1b[K\x1b[0m"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue