Alchemy  1.0
A framework to robustly process network messages and structured data
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
uses_exceptions.h
Go to the documentation of this file.
1 /// @file Pb/detail/uses_exceptions.h
2 /// Conditional header file to enable exception handling.
3 ///
4 /// Exception handling is disabled by default in Alchemy because it's initial
5 /// and primary target usage is for embedded communication devices such as
6 /// routers and modems.
7 ///
8 /// The MIT License(MIT)
9 /// @copyright 2014 Paul M Watt
10 // ****************************************************************************
11 #ifndef USES_EXCEPTIONS_H_INCLUDED
12 #define USES_EXCEPTIONS_H_INCLUDED
13 
14 // Enable Exception Support
15 // If there are other compiler pre-processor definitions
16 // that are used to control exception handling support,
17 // add there definition to the clause below.
18 
19 #ifdef _USES_EXCEPTIONS
20 # include <stdexcept>
21 # define ALCHEMY_USES_EXCEPTIONS 1
22 #endif
23 
24 
25 #endif