1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-20 12:03:52 +01:00
RIOT/cpu/native/include/util/valgrind.h
2025-09-25 17:48:55 +02:00

22 lines
412 B
C

/*
* SPDX-FileCopyrightText: 2025 carl-tud
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
#ifdef HAVE_VALGRIND_H
# include <valgrind.h>
#define VALGRIND_DEBUG DEBUG
# elif defined(HAVE_VALGRIND_VALGRIND_H)
# include <valgrind/valgrind.h>
#define VALGRIND_DEBUG DEBUG
#else
# define VALGRIND_STACK_REGISTER(...) (0)
# define VALGRIND_DEBUG(...)
#endif
#ifdef __cplusplus
extern "C" {}
#endif