| 1 | /*************************************************************************** |
| 2 | SharpPlusFramework.h - description |
| 3 | ------------------- |
| 4 | begin : January 2nd, 2009 |
| 5 | copyright : (C) 2009 by Duong Khang NGUYEN |
| 6 | email : neoneurone @ gmail com |
| 7 | |
| 8 | $Id: SharpPlus.h 449 2010-05-20 18:46:59Z neoneurone $ |
| 9 | ***************************************************************************/ |
| 10 | |
| 11 | /*************************************************************************** |
| 12 | * * |
| 13 | * This program is free software; you can redistribute it and/or modify * |
| 14 | * it under the terms of the GNU General Public License as published by * |
| 15 | * the Free Software Foundation; either version 2 of the License, or * |
| 16 | * any later version. * |
| 17 | * * |
| 18 | ***************************************************************************/ |
| 19 | |
| 20 | #ifndef _SPF_SHARPPLUSFRAMEWORK_H_ |
| 21 | #define _SPF_SHARPPLUSFRAMEWORK_H_ 1 |
| 22 | |
| 23 | #ifndef __GXX_RTTI |
| 24 | #error "The GCC RTTI support is required." |
| 25 | #endif |
| 26 | |
| 27 | #ifndef __EXCEPTIONS |
| 28 | #error "The C++ exception support is required." |
| 29 | #endif |
| 30 | |
| 31 | // Standard C++ headers |
| 32 | #include <typeinfo> // Standard C++ type_info class and typeid operator |
| 33 | |
| 34 | #define SPF_NAMESPACE_SEPARATOR "::" |
| 35 | #define SPF_NAMESPACE_BEGIN(X) namespace X { |
| 36 | #define SPF_NAMESPACE_END } |
| 37 | #define SPF_NAMESPACE_NESTED_BEGIN(X, Y) namespace X { namespace Y { |
| 38 | #define SPF_NAMESPACE_NESTED_END } } |
| 39 | |
| 40 | #endif |