GeezerVison is showing github.com — src: Add ABORT macro · nodejs/node@0b1ca4a
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: src/cares_wrap.cc +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1067,7 +1067,7 @@ static void GetAddrInfo(const FunctionCallbackInfo<Value>& args) { | 1067 | 1067 | break; | 1068 | 1068 | default: | 1069 | 1069 | CHECK(0 && "bad address family"); | 1070 | | - abort(); | | 1070 | + ABORT(); | 1071 | 1071 | } | 1072 | 1072 |
| 1073 | 1073 | GetAddrInfoReqWrap* req_wrap = new GetAddrInfoReqWrap(env, req_wrap_obj); | @@ -1193,7 +1193,7 @@ static void SetServers(const FunctionCallbackInfo<Value>& args) { | 1193 | 1193 | break; | 1194 | 1194 | default: | 1195 | 1195 | CHECK(0 && "Bad address family."); | 1196 | | - abort(); | | 1196 | + ABORT(); | 1197 | 1197 | } | 1198 | 1198 |
| 1199 | 1199 | if (err) | |
Collapse file Copy file name to clipboardExpand all lines: src/fs_event_wrap.cc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -146,7 +146,7 @@ void FSEventWrap::OnEvent(uv_fs_event_t* handle, const char* filename, | 146 | 146 | event_string = env->change_string(); | 147 | 147 | } else { | 148 | 148 | CHECK(0 && "bad fs events flag"); | 149 | | - abort(); | | 149 | + ABORT(); | 150 | 150 | } | 151 | 151 |
| 152 | 152 | Local<Value> argv[] = { | |
Collapse file Copy file name to clipboardExpand all lines: src/node.cc +6-6Lines changed: 6 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -918,7 +918,7 @@ void SetupDomainUse(const FunctionCallbackInfo<Value>& args) { | 918 | 918 |
| 919 | 919 | if (!tick_callback_function->IsFunction()) { | 920 | 920 | fprintf(stderr, "process._tickDomainCallback assigned to non-function\n"); | 921 | | - abort(); | | 921 | + ABORT(); | 922 | 922 | } | 923 | 923 |
| 924 | 924 | process_object->Set(env->tick_callback_string(), tick_callback_function); | @@ -1526,7 +1526,7 @@ void GetActiveHandles(const FunctionCallbackInfo<Value>& args) { | 1526 | 1526 |
| 1527 | 1527 |
| 1528 | 1528 | static void Abort(const FunctionCallbackInfo<Value>& args) { | 1529 | | - abort(); | | 1529 | + ABORT(); | 1530 | 1530 | } | 1531 | 1531 |
| 1532 | 1532 |
| @@ -2146,14 +2146,14 @@ static void OnFatalError(const char* location, const char* message) { | 2146 | 2146 | fprintf(stderr, "FATAL ERROR: %s\n", message); | 2147 | 2147 | } | 2148 | 2148 | fflush(stderr); | 2149 | | - abort(); | | 2149 | + ABORT(); | 2150 | 2150 | } | 2151 | 2151 |
| 2152 | 2152 |
| 2153 | 2153 | NO_RETURN void FatalError(const char* location, const char* message) { | 2154 | 2154 | OnFatalError(location, message); | 2155 | 2155 | // to suppress compiler warning | 2156 | | - abort(); | | 2156 | + ABORT(); | 2157 | 2157 | } | 2158 | 2158 |
| 2159 | 2159 |
| @@ -3555,9 +3555,9 @@ inline void PlatformInit() { | 3555 | 3555 | // Anything but EBADF means something is seriously wrong. We don't | 3556 | 3556 | // have to special-case EINTR, fstat() is not interruptible. | 3557 | 3557 | if (errno != EBADF) | 3558 | | - abort(); | | 3558 | + ABORT(); | 3559 | 3559 | if (fd != open("/dev/null", O_RDWR)) | 3560 | | - abort(); | | 3560 | + ABORT(); | 3561 | 3561 | } | 3562 | 3562 |
| 3563 | 3563 | CHECK_EQ(err, 0); | |
Collapse file Copy file name to clipboardExpand all lines: src/node_crypto.cc +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -182,7 +182,7 @@ static void crypto_lock_init(void) { | 182 | 182 |
| 183 | 183 | for (i = 0; i < n; i++) | 184 | 184 | if (uv_mutex_init(locks + i)) | 185 | | - abort(); | | 185 | + ABORT(); | 186 | 186 | } | 187 | 187 |
| 188 | 188 |
| @@ -3466,7 +3466,7 @@ void SignBase::CheckThrow(SignBase::Error error) { | 3466 | 3466 | case kSignPublicKey: | 3467 | 3467 | return env()->ThrowError("PEM_read_bio_PUBKEY failed"); | 3468 | 3468 | default: | 3469 | | - abort(); | | 3469 | + ABORT(); | 3470 | 3470 | } | 3471 | 3471 | } | 3472 | 3472 |
| |
Collapse file Copy file name to clipboardExpand all lines: src/node_crypto_bio.cc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -172,7 +172,7 @@ long NodeBIO::Ctrl(BIO* bio, int cmd, long num, void* ptr) { | 172 | 172 | break; | 173 | 173 | case BIO_C_SET_BUF_MEM: | 174 | 174 | CHECK(0 && "Can't use SET_BUF_MEM_PTR with NodeBIO"); | 175 | | - abort(); | | 175 | + ABORT(); | 176 | 176 | break; | 177 | 177 | case BIO_C_GET_BUF_MEM_PTR: | 178 | 178 | CHECK(0 && "Can't use GET_BUF_MEM_PTR with NodeBIO"); | |
Collapse file Copy file name to clipboardExpand all lines: src/spawn_sync.cc +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -485,7 +485,7 @@ void SyncProcessRunner::TryInitializeAndRunLoop(Local<Value> options) { | 485 | 485 | r = uv_run(uv_loop_, UV_RUN_DEFAULT); | 486 | 486 | if (r < 0) | 487 | 487 | // We can't handle uv_run failure. | 488 | | - abort(); | | 488 | + ABORT(); | 489 | 489 |
| 490 | 490 | // If we get here the process should have exited. | 491 | 491 | CHECK_GE(exit_status_, 0); | @@ -508,7 +508,7 @@ void SyncProcessRunner::CloseHandlesAndDeleteLoop() { | 508 | 508 | // callbacks called. | 509 | 509 | int r = uv_run(uv_loop_, UV_RUN_DEFAULT); | 510 | 510 | if (r < 0) | 511 | | - abort(); | | 511 | + ABORT(); | 512 | 512 |
| 513 | 513 | CHECK_EQ(uv_loop_close(uv_loop_), 0); | 514 | 514 | delete uv_loop_; | |
Collapse file Copy file name to clipboardExpand all lines: src/stream_wrap.cc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -179,7 +179,7 @@ static Local<Object> AcceptHandle(Environment* env, StreamWrap* parent) { | 179 | 179 | handle = wrap->UVHandle(); | 180 | 180 |
| 181 | 181 | if (uv_accept(parent->stream(), reinterpret_cast<uv_stream_t*>(handle))) | 182 | | - abort(); | | 182 | + ABORT(); | 183 | 183 |
| 184 | 184 | return scope.Escape(wrap_obj); | 185 | 185 | } | |
Collapse file Copy file name to clipboardExpand all lines: src/tls_wrap.cc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -152,7 +152,7 @@ void TLSWrap::InitSSL() { | 152 | 152 | SSL_set_connect_state(ssl_); | 153 | 153 | } else { | 154 | 154 | // Unexpected | 155 | | - abort(); | | 155 | + ABORT(); | 156 | 156 | } | 157 | 157 |
| 158 | 158 | // Initialize ring for queud clear data | |
Collapse file Copy file name to clipboardExpand all lines: src/tty_wrap.cc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -72,7 +72,7 @@ void TTYWrap::GuessHandleType(const FunctionCallbackInfo<Value>& args) { | 72 | 72 | case UV_NAMED_PIPE: type = "PIPE"; break; | 73 | 73 | case UV_UNKNOWN_HANDLE: type = "UNKNOWN"; break; | 74 | 74 | default: | 75 | | - abort(); | | 75 | + ABORT(); | 76 | 76 | } | 77 | 77 |
| 78 | 78 | args.GetReturnValue().Set(OneByteString(env->isolate(), type)); | |
Collapse file Copy file name to clipboardExpand all lines: src/udp_wrap.cc +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -166,7 +166,7 @@ void UDPWrap::DoBind(const FunctionCallbackInfo<Value>& args, int family) { | 166 | 166 | break; | 167 | 167 | default: | 168 | 168 | CHECK(0 && "unexpected address family"); | 169 | | - abort(); | | 169 | + ABORT(); | 170 | 170 | } | 171 | 171 |
| 172 | 172 | if (err == 0) { | @@ -278,7 +278,7 @@ void UDPWrap::DoSend(const FunctionCallbackInfo<Value>& args, int family) { | 278 | 278 | break; | 279 | 279 | default: | 280 | 280 | CHECK(0 && "unexpected address family"); | 281 | | - abort(); | | 281 | + ABORT(); | 282 | 282 | } | 283 | 283 |
| 284 | 284 | if (err == 0) { | |
|