2
Copyright (C) 2000-2007 MySQL AB
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; version 2 of the License.
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
13
You should have received a copy of the GNU General Public License
14
along with this program; see the file COPYING. If not, write to the
15
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
19
/* runtime.hpp provides C++ runtime support functions when building a pure C
20
* version of yaSSL, user must define YASSL_PURE_C
36
// Handler for pure virtual functions
38
static void pure_error(void)
40
assert("Pure virtual method called." == "Aborted");
47
#if defined(__GNUC__) && !(defined(__ICC) || defined(__INTEL_COMPILER))
52
#if !defined(DO_TAOCRYPT_KERNEL_MODE)
55
#include "kernelc.hpp"
58
/* Disallow inline __cxa_pure_virtual() */
59
static int __cxa_pure_virtual() __attribute__((noinline, used));
60
static int __cxa_pure_virtual()
62
// oops, pure virtual called!
63
assert("Pure virtual method called." == "Aborted");
69
#endif // __GNUC__ > 2
70
#endif // compiler check
71
#endif // yaSSL_NEW_HPP