valgrind.h
1 /*
2  * Copyright (C) 2025 carl-tud
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #ifndef UTIL_VALGRIND_H
10 #define UTIL_VALGRIND_H
11 
12 #ifdef HAVE_VALGRIND_H
13 # include <valgrind.h>
14 #define VALGRIND_DEBUG DEBUG
15 # elif defined(HAVE_VALGRIND_VALGRIND_H)
16 # include <valgrind/valgrind.h>
17 #define VALGRIND_DEBUG DEBUG
18 #else
19 # define VALGRIND_STACK_REGISTER(...) (0)
20 # define VALGRIND_DEBUG(...)
21 #endif
22 
23 #ifdef __cplusplus
24 extern "C" {}
25 #endif
26 
27 #endif /* UTIL_VALGRIND_H */