Re-organise public headers
[librseq.git] / include / rseq / inject.h
1 /* SPDX-License-Identifier: MIT */
2 /* SPDX-FileCopyrightText: 2016-2022 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> */
3
4 /*
5 * rseq/inject.h
6 */
7
8 #ifndef _RSEQ_INJECT_H
9 #define _RSEQ_INJECT_H
10
11 /*
12 * Empty code injection macros, override when testing.
13 * It is important to consider that the ASM injection macros need to be
14 * fully reentrant (e.g. do not modify the stack).
15 */
16
17 #ifndef RSEQ_INJECT_ASM
18 #define RSEQ_INJECT_ASM(n)
19 #endif
20
21 #ifndef RSEQ_INJECT_C
22 #define RSEQ_INJECT_C(n)
23 #endif
24
25 #ifndef RSEQ_INJECT_INPUT
26 #define RSEQ_INJECT_INPUT
27 #endif
28
29 #ifndef RSEQ_INJECT_CLOBBER
30 #define RSEQ_INJECT_CLOBBER
31 #endif
32
33 #ifndef RSEQ_INJECT_FAILED
34 #define RSEQ_INJECT_FAILED
35 #endif
36
37 #endif /* _RSEQ_INJECT_H */
This page took 0.029055 seconds and 4 git commands to generate.