9 Commits

Author SHA1 Message Date
John Wellbelove
48919b3c15 Modified the error system.
Remove ETL_ERROR and replaced with ETL_ASSERT.
ETL_ASSERT will eveluate to 'true' in all cases except for error logging.
This will allow 'if' statements that contain the macro to be optimised away for all cases except logging.
Added ETL_NO_CHECKS and ETL_LOG_ERRORS macro checks.

The options are now:-
ETL_NO_CHECKS         ETL_ASSERT does nothing. Evaluates to 'true'.
ETL_THROW_EXCEPTIONS) ETL_ASSERT throws an exception if the condition fails. Evaluates to 'true'.
ETL_LOG_ERRORS        ETL_ASSERT logs the error if the condition fails. Evaluates to the result of the condition.
If none of the above are defined:-
NDEBUG ETL_ASSERT does nothing. Evaluates to 'true'.
Otherwise:-
ETL_ASSERT asserts if the condition fails. Evaluates to 'true'.
2015-12-11 19:02:47 +00:00
jwellbelove
ae385d5561 Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
jwellbelove
090ee05c93 Added #ifndef ETL_THROW_EXCEPTIONS 2014-12-22 00:54:32 +00:00
jwellbelove
a12d64c24e Comment changes 2014-12-18 20:03:32 +00:00
jwellbelove
fecbdf3673 Changed ETL_USE_EXCEPTIONS to ETL_THROW_EXCEPTIONS 2014-12-08 20:30:42 +00:00
jwellbelove
1108b9e5c7 Updates for Code::Blocks and CodeLite
Updates so that Code::Blocks and CodeLite can compile the tests.
Made include guards upper case.
2014-11-05 17:41:17 +00:00
jwellbelove
740b088282 Changes for compatibility with GCC 2014-11-04 20:33:11 +00:00
jwellbelove
6115be6595 Changed exception names 2014-11-03 12:32:11 +00:00
jwellbelove
f033f1d795 Added observer pattern template 2014-10-31 15:57:33 +00:00