Normed the headers of stdme
This commit is contained in:
parent
61ef75f212
commit
3914f0621f
2 changed files with 17 additions and 17 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/05/19 23:30:46 by maiboyer #+# #+# */
|
/* Created: 2024/05/19 23:30:46 by maiboyer #+# #+# */
|
||||||
/* Updated: 2024/07/22 15:10:45 by maiboyer ### ########.fr */
|
/* Updated: 2024/07/30 16:41:44 by rparodi ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/11/03 14:31:12 by maiboyer #+# #+# */
|
/* Created: 2023/11/03 14:31:12 by maiboyer #+# #+# */
|
||||||
/* Updated: 2024/07/26 13:55:48 by maiboyer ### ########.fr */
|
/* Updated: 2024/07/30 16:40:58 by rparodi ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -18,6 +18,18 @@
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
|
|
||||||
|
# ifndef ERROR
|
||||||
|
/// @def signal that an error occured
|
||||||
|
# define ERROR 1
|
||||||
|
# else
|
||||||
|
# include <stdio.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# ifndef NO_ERROR
|
||||||
|
/// @def signal that no error occured
|
||||||
|
# define NO_ERROR 0
|
||||||
|
# endif
|
||||||
|
|
||||||
/// @brief A string, null terminated
|
/// @brief A string, null terminated
|
||||||
typedef char *t_str;
|
typedef char *t_str;
|
||||||
/// @brief A constant string, null terminated
|
/// @brief A constant string, null terminated
|
||||||
|
|
@ -64,16 +76,4 @@ void me_exit(t_i32 code);
|
||||||
/// @brief a function that prints the current stack trace
|
/// @brief a function that prints the current stack trace
|
||||||
void print_trace(void);
|
void print_trace(void);
|
||||||
|
|
||||||
|
|
||||||
# ifndef ERROR
|
|
||||||
/// @def signal that an error occured
|
|
||||||
# define ERROR 1
|
|
||||||
# else
|
|
||||||
# include <stdio.h>
|
|
||||||
# endif
|
|
||||||
|
|
||||||
# ifndef NO_ERROR
|
|
||||||
/// @def signal that no error occured
|
|
||||||
# define NO_ERROR 0
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue