mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
compiler: introduce QEMU_ANNOTATE
Allow a more shorter syntax when defining wrapper macros for __attribute__((annotate(...))). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
e2dbca0337
commit
d79b9202e4
2 changed files with 9 additions and 3 deletions
|
@ -197,4 +197,10 @@
|
|||
#define BUILTIN_SUBCLL_BROKEN
|
||||
#endif
|
||||
|
||||
#if __has_attribute(annotate)
|
||||
#define QEMU_ANNOTATE(x) __attribute__((annotate(x)))
|
||||
#else
|
||||
#define QEMU_ANNOTATE(x)
|
||||
#endif
|
||||
|
||||
#endif /* COMPILER_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue