15 Commits

Author SHA1 Message Date
John Wellbelove
16a1978f43 Added link to www.etlcpp.com in licence header. 2015-12-16 11:09:56 +00:00
John Wellbelove
a048784285 Changed the way that errors are produced and handled.
Compile time macros control the type and verbosity of the errors to allow space and performance optimisation.
2015-12-15 19:28:12 +00:00
John Wellbelove
632bc59f9c 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-10 13:45:29 +00:00
John Wellbelove
a17e679259 Converted to new error handling macro. 2015-09-13 20:55:21 +01:00
jwellbelove
ae385d5561 Added Github link to copyright notice. 2015-02-22 13:23:18 +00:00
jwellbelove
44677c3556 Changed comments 2014-12-09 15:22:24 +00:00
jwellbelove
824eb89719 Added get() non-member template functions. 2014-12-09 15:04:53 +00:00
jwellbelove
c78dd9eb32 Changed to stddef.h, added error_handler support 2014-12-08 20:24:00 +00:00
jwellbelove
9c2619ddfd Mostly updated comments
Some extra tests
2014-11-21 17:10:04 +00:00
jwellbelove
6ac2a3c6ec Updated array 2014-11-19 18:38:09 +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
64f3386b37 Changed exception names 2014-11-03 12:31:39 +00:00
jwellbelove
75324aa134 Edited comments 2014-10-31 15:53:45 +00:00
jwellbelove
c052dc91be namespace elt to etl
Corrected namespace from elt to etl
2014-10-26 16:39:14 +00:00
jwellbelove
be36670b9a Added array and updated doxygen comments
Added array and updated doxygen comments
2014-10-23 17:27:03 +01:00