1
0

🔨」 fix: It work on my machine also now 🎉

This commit is contained in:
2024-09-11 11:15:52 +02:00
parent e1b112a5c0
commit a11b159e50
7 changed files with 10 additions and 12 deletions

28
includes/cub3d.h Normal file
View File

@ -0,0 +1,28 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* cub3d.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: madumerg <madumerg@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/04 17:01:05 by madumerg #+# #+# */
/* Updated: 2024/09/07 17:48:56 by madumerg ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CUB3D_H
# define CUB3D_H
# include "../libft/includes/libft.h"
# include "mess_err.h"
# include <stdlib.h>
# include <math.h>
# include <unistd.h>
# include <fcntl.h>
int check_format_file(char *file);
int check_err_arg(int argc, char **argv);
int err_mess(char *str);
#endif

24
includes/mess_err.h Normal file
View File

@ -0,0 +1,24 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* mess_err.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: madumerg <madumerg@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/04 21:59:56 by madumerg #+# #+# */
/* Updated: 2024/09/07 19:13:20 by madumerg ### ########.fr */
/* */
/* ************************************************************************** */
//for argurments
#define ERR_ARGS "Wrong number of arguments"
#define ERR_TYPE "Wrong type of file"
#define EMPTY "Empty file"
//for map
#define NOT_CLOSE "The map isn't closed"
#define ERR_PLAYER "Incorrect number of players"
//for permission