diff options
| author | Dominik Kaiser | 2024-06-25 13:03:28 +0200 |
|---|---|---|
| committer | GitHub | 2024-06-25 13:03:28 +0200 |
| commit | 0d7a57a7bc14831d6d7076ccb0ea7a7213ddd7fb (patch) | |
| tree | b32a1e9f885ec813cd8b729c05db2ba2a68f9475 /include/debug_tools.h | |
| parent | 1d8f996fe098b7399669174b67d2fa6341bea8d7 (diff) | |
| download | minishell-0d7a57a7bc14831d6d7076ccb0ea7a7213ddd7fb.tar.gz minishell-0d7a57a7bc14831d6d7076ccb0ea7a7213ddd7fb.zip | |
Add debug tools
* Add dbg() function and debug make rule
* Add panic() debug function
Diffstat (limited to 'include/debug_tools.h')
| -rw-r--r-- | include/debug_tools.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/debug_tools.h b/include/debug_tools.h new file mode 100644 index 0000000..e831ecc --- /dev/null +++ b/include/debug_tools.h @@ -0,0 +1,24 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* debug_tools.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2024/06/24 18:34:37 by dkaiser #+# #+# */ +/* Updated: 2024/06/24 18:51:53 by dkaiser ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef DEBUG_TOOLS_H +# define DEBUG_TOOLS_H + +# include "libft.h" + +# ifndef DEBUG +# define DEBUG 0 +# endif + +void dbg(char *str); +void panic(char *msg); +#endif |
