Add TNG writing and reading support
[alexxy/gromacs.git] / src / external / tng_io / include / compression / warnmalloc.h
1 /* This code is part of the tng compression routines.
2  *
3  * Written by Daniel Spangberg
4  * Copyright (c) 2010, 2013, The GROMACS development team.
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the Revised BSD License.
9  */
10
11
12 #ifndef WARNMALLOC_H
13 #define WARNMALLOC_H
14
15 #include "../compression/tng_compress.h"
16
17 void DECLSPECDLLEXPORT *Ptngc_warnmalloc_x(size_t size, char *file, int line);
18
19 #define warnmalloc(size) Ptngc_warnmalloc_x(size,__FILE__,__LINE__)
20
21 void DECLSPECDLLEXPORT *Ptngc_warnrealloc_x(void *old, size_t size, char *file, int line);
22
23 #define warnrealloc(old,size) Ptngc_warnrealloc_x(old,size,__FILE__,__LINE__)
24
25
26 #endif