forked from mvtta/simple_debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simple_debugs.h
34 lines (29 loc) · 1.25 KB
/
simple_debugs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* simple_debugs.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bcosters <bcosters@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/02/17 12:07:42 by bcosters #+# #+# */
/* Updated: 2021/02/28 14:17:00 by bcosters ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef SIMPLE_DEBUGS_H
# define SIMPLE_DEBUGS_H
/*
** Simple debug functions
*/
# include <unistd.h>
void debug_str(const char *s, char *name);
void debug_number(int i, char *name);
/*
** Memory leak checker in C, courtesy of https://gist.github.com/drrost
*/
#include <stdio.h>
#include <dlfcn.h>
#include <execinfo.h>
#include <string.h>
#include <stdlib.h>
void check_leaks();
#endif