1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-09 00:50:47 +00:00

AK: Add #define for [[gnu::no_sanitize_address]]

This lines up with other attribute global #defines
This commit is contained in:
Andrew Kaster 2021-05-12 05:51:02 -06:00 committed by Linus Groh
parent d81f52e529
commit 28987d1b56

View File

@ -40,6 +40,11 @@
#endif
#define FLATTEN [[gnu::flatten]]
#ifdef NO_SANITIZE_ADDRESS
# undef NO_SANITIZE_ADDRESS
#endif
#define NO_SANITIZE_ADDRESS [[gnu::no_sanitize_address]]
#ifndef __serenity__
# include <unistd.h>
# define PAGE_SIZE sysconf(_SC_PAGESIZE)