Merge branch release-2016
[gromacs.git] / src / external / tng_io / include / compression / warnmalloc.h
blobaa631117ed0bc8e6b62c602059aeab66113a5e8e
1 /* This code is part of the tng compression routines.
3 * Written by Daniel Spangberg
4 * Copyright (c) 2010, 2013, The GROMACS development team.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the Revised BSD License.
9 */
12 #ifndef WARNMALLOC_H
13 #define WARNMALLOC_H
15 #include "../compression/tng_compress.h"
17 void DECLSPECDLLEXPORT *Ptngc_warnmalloc_x(const size_t size, char *file, const int line);
19 #define warnmalloc(size) Ptngc_warnmalloc_x(size,__FILE__,__LINE__)
21 void DECLSPECDLLEXPORT *Ptngc_warnrealloc_x(void *old, const size_t size, char *file, const int line);
23 #define warnrealloc(old,size) Ptngc_warnrealloc_x(old,size,__FILE__,__LINE__)
26 #endif