ROHC compression/decompression library
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
src
common
rohc_debug.h
Go to the documentation of this file.
1
/*
2
* Copyright 2010,2012 Didier Barvaux
3
*
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
8
*
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
*/
18
19
/**
20
* @file rohc_debug.h
21
* @brief ROHC debug utils
22
* @author Didier Barvaux <didier.barvaux@toulouse.viveris.com>
23
* @author Didier Barvaux <didier@barvaux.org>
24
*/
25
26
#ifndef ROHC_DEBUG_H
27
#define ROHC_DEBUG_H
28
29
/*
30
* Includes
31
*/
32
33
#include <stdlib.h>
/* for free(3) */
34
35
36
/*
37
* Debug macros
38
*/
39
40
/** Free a pointer plus set it to NULL to avoid hidden bugs */
41
#define zfree(pointer) \
42
do { \
43
free(pointer); \
44
pointer = NULL; \
45
} while(0)
46
47
#endif
48
Generated by
1.8.10