diff options
author | unknown <konstantin@mysql.com> | 2004-07-09 01:35:35 +0400 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2004-07-09 01:35:35 +0400 |
commit | 6e18271f1c5979a3c337c23c341e75175b1d8b93 (patch) | |
tree | 77863c678e2f2a05ea407f6fff94e92ec33958c7 /include/my_global.h | |
parent | 27dc52fa022ba3d7d9cd87b866d84d9c03940048 (diff) | |
download | mariadb-git-6e18271f1c5979a3c337c23c341e75175b1d8b93.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.
include/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/my_global.h')
-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 |