libsex  3.1.0
simple exception library (C++)
Defines
/home/ptr/dev/dev-libs/libsex/libsex/declare.hxx File Reference

Macro LIBSEX_DECLARE. More...

#include <libsex/Exception.hxx>

Go to the source code of this file.

Defines

#define LIBSEX_DECLARE(parent, scope, name)
 Declares an exception inheriting from a supplied class.

Detailed Description

Macro LIBSEX_DECLARE.

and

Definition in file declare.hxx.


Define Documentation

#define LIBSEX_DECLARE (   parent,
  scope,
  name 
)
Value:
class scope::name : public parent\
{\
public:\
        static const char* const TEMPLATE;\
        name(const char* const errorMessage);\
        name(\
                const char* const errorMessage,\
                const libsex::Exception& previous);\
};

Declares an exception inheriting from a supplied class.

Note:
Due to technical limitations, it is not possible to use LIBSEX_DECLARE to declare a class in global scope. However, in a truly modular system that would be bad practice anyways, so I don't care.
Parameters:
parentParent class (incl. scope).
scopeNon-global scope of class to be defined.
nameName of class to be defined.
See also:
LIBSEX_DEFINE

Definition at line 25 of file declare.hxx.

 All Classes Files Functions Variables Defines