Elliott Hughes | 52d6233 | 2012-07-27 17:40:29 -0700 | [diff] [blame] | 1 | #undef NDEBUG |
| 2 | #include <assert.h> |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 3 | |
Elliott Hughes | 52d6233 | 2012-07-27 17:40:29 -0700 | [diff] [blame] | 4 | extern "C" void __cxa_pure_virtual() { |
Elliott Hughes | 8f2a5a0 | 2013-03-15 15:30:25 -0700 | [diff] [blame] | 5 | // We can't call __libc_format_log from libstdc++ because it's hidden and in libc, so cheat. |
Elliott Hughes | 52d6233 | 2012-07-27 17:40:29 -0700 | [diff] [blame] | 6 | assert(!"Pure virtual function called. Are you calling virtual methods from a destructor?"); |
| 7 | /* NOTREACHED */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 8 | } |