diff options
author | konstantin@mysql.com <> | 2004-07-09 01:35:35 +0400 |
---|---|---|
committer | konstantin@mysql.com <> | 2004-07-09 01:35:35 +0400 |
commit | 664329b56545c6968dcdb75937d06ec4e93b3513 (patch) | |
tree | 77863c678e2f2a05ea407f6fff94e92ec33958c7 /include | |
parent | 6c996daa911433d3aab0f9d407d716abbbf6d06f (diff) | |
download | mariadb-git-664329b56545c6968dcdb75937d06ec4e93b3513.tar.gz |
my_global.h:
Define cxa_pure_virtual to print error message and DBUG_ASSERT:
calls to pure virtual methods should not go unnoticed.
Diffstat (limited to 'include')
-rw-r--r-- | include/my_global.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/my_global.h b/include/my_global.h index f5c14ea3e10..3c35ade8383 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -213,7 +213,11 @@ C_MODE_END /* Fix problem when linking c++ programs with gcc 3.x */ #ifdef DEFINE_CXA_PURE_VIRTUAL -#define FIX_GCC_LINKING_PROBLEM extern "C" { int __cxa_pure_virtual() {return 0;} } +#define FIX_GCC_LINKING_PROBLEM \ +extern "C" { int __cxa_pure_virtual() {\ + DBUG_ASSERT("Pure virtual method called." == "Aborted");\ + return 0;\ +} } #else #define FIX_GCC_LINKING_PROBLEM #endif |