Modified DECLARE/DEFINE to expect seperate scope.
[libsex.git] / tests / framework / ExampleException1.hxx
blobac0ff250c57cc5405477bcb2b027993623892faf
1 /**
2 * @file
4 * Shows how to _declare_ basic exception class.
5 */
7 #ifndef EXAMPLEEXCEPTION1_HXX
8 #define EXAMPLEEXCEPTION1_HXX
10 #include <libsex/declare.hxx>
11 #include <libsex/Exception.hxx>
14 namespace example
16 // Forward declare to ensure the namespace exists.
17 class ExampleException1;
21 // ExampleException1 inherits from libsex::Exception.
22 LIBSEX_DECLARE(libsex::Exception, example, ExampleException1)
24 #endif