diff options
author | Refael Ackermann <refack@gmail.com> | 2018-10-08 17:41:47 +0300 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2018-10-12 02:53:20 +0300 |
commit | 03e1865baf6ca3325651b32d578a5b44fbf3fadd (patch) | |
tree | aed2b563b30d0aaf2fc997f6515aa4efbd95f1f0 /src/util.h | |
parent | d4ce144b0aaf9f117c71d97362526c70603ea06b (diff) |
src: replace NO_RETURN with [[noreturn]]
PR-URL: https://github.com/nodejs/node/pull/23337
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/util.h b/src/util.h index 91d61f121ba..b522a88b726 100644 --- a/src/util.h +++ b/src/util.h @@ -77,16 +77,10 @@ inline T MultiplyWithOverflowCheck(T a, T b); // whether V8 is initialized. void LowMemoryNotification(); -#ifdef __GNUC__ -#define NO_RETURN __attribute__((noreturn)) -#else -#define NO_RETURN -#endif - // The slightly odd function signature for Assert() is to ease // instruction cache pressure in calls from CHECK. -NO_RETURN void Abort(); -NO_RETURN void Assert(const char* const (*args)[4]); +[[noreturn]] void Abort(); +[[noreturn]] void Assert(const char* const (*args)[4]); void DumpBacktrace(FILE* fp); #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ |