Chromium Code Reviews| Index: runtime/platform/globals.h |
| diff --git a/runtime/platform/globals.h b/runtime/platform/globals.h |
| index 5a9bf040db335ebab2dabe292ab23a83d78cda2e..764cf7d103cd1b5f8879b5c3381383380f76bde6 100644 |
| --- a/runtime/platform/globals.h |
| +++ b/runtime/platform/globals.h |
| @@ -233,6 +233,14 @@ typedef simd128_value_t fpu_register_t; |
| #define DART_UNUSED |
| #endif |
| +#ifdef _MSC_VER |
| +#define DART_NORETURN __declspec(noreturn) |
| +#elif __GNUC__ |
| +#define DART_NORETURN __attribute__((noreturn)) |
|
Ivan Posva
2015/10/29 23:14:09
Why?
zra
2015/10/30 06:09:46
exit() is marked as not returning. If we don't mar
|
| +#else |
| +#error Automatic compiler detection failed. |
| +#endif |
| + |
| #if !defined(TARGET_ARCH_MIPS) |
| #if !defined(TARGET_ARCH_ARM) |
| #if !defined(TARGET_ARCH_X64) |