OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
| 7 #include <intrin.h> |
7 #include <stdlib.h> | 8 #include <stdlib.h> |
8 #include <stdio.h> | 9 #include <stdio.h> |
9 | 10 |
10 #include "native_client/src/include/portability.h" | 11 #include "native_client/src/include/portability.h" |
11 #include "native_client/src/shared/platform/nacl_exit.h" | 12 #include "native_client/src/shared/platform/nacl_exit.h" |
12 #include "native_client/src/trusted/service_runtime/nacl_signal.h" | 13 #include "native_client/src/trusted/service_runtime/nacl_signal.h" |
13 | 14 |
14 | 15 |
15 /* | 16 /* |
16 * The MSVC compiler wrongly gives an "unreachable code" warning for | 17 * The MSVC compiler wrongly gives an "unreachable code" warning for |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 * ideal, but it is OK because NaClExit() should only be used for | 73 * ideal, but it is OK because NaClExit() should only be used for |
73 * graceful exits (when no internal errors have been detected), | 74 * graceful exits (when no internal errors have been detected), |
74 * and because there will be no other threads at this point. | 75 * and because there will be no other threads at this point. |
75 */ | 76 */ |
76 ExitProcess(err_code); | 77 ExitProcess(err_code); |
77 | 78 |
78 /* Just in case. */ | 79 /* Just in case. */ |
79 NaClAbort(); | 80 NaClAbort(); |
80 #endif | 81 #endif |
81 } | 82 } |
OLD | NEW |