summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2016-06-19 10:44:22 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2016-06-29 13:50:35 +0200
commitbe767cf885438d6c3d3f84b6a5e2185b62f60318 (patch)
tree45367c9341ba902994a828d765ff0de50f8b68f9 /src/node_internals.h
parent64edd064b880ff8ce3bcc85d68e0100c8d987fa0 (diff)
downloadandroid-node-v8-be767cf885438d6c3d3f84b6a5e2185b62f60318.tar.gz
android-node-v8-be767cf885438d6c3d3f84b6a5e2185b62f60318.tar.bz2
android-node-v8-be767cf885438d6c3d3f84b6a5e2185b62f60318.zip
src: move ABORT() logic into node::Abort()
Don't inline calls to node::DumpBacktrace() and fflush(), it makes the generated code bigger. A secondary benefit of moving it to a function is that it gives you something to put a breakpoint on. PR-URL: https://github.com/nodejs/node/pull/6734 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index d215feb537..3f2c0f02cc 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -127,12 +127,10 @@ constexpr size_t arraysize(const T(&)[N]) { return N; }
# define ROUND_UP(a, b) ((a) % (b) ? ((a) + (b)) - ((a) % (b)) : (a))
#endif
-#if defined(__GNUC__) && __GNUC__ >= 4
+#ifdef __GNUC__
# define MUST_USE_RESULT __attribute__((warn_unused_result))
-# define NO_RETURN __attribute__((noreturn))
#else
# define MUST_USE_RESULT
-# define NO_RETURN
#endif
bool IsExceptionDecorated(Environment* env, v8::Local<v8::Value> er);