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() { |
| 5 | // We can't call __libc_android_log_write from libstdc++ because it's private, so cheat. |
| 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 | } |