4578 Commits

Author SHA1 Message Date
John Wellbelove
1c9cf2246b Fixed insert overwriting existing value. 2016-01-09 13:06:38 +00:00
John Wellbelove
fff1b4d7d4 Greater compliance with C++ spec. 2016-01-09 11:22:31 +00:00
John Wellbelove
760f08db0b Comment spelling 2016-01-09 11:21:45 +00:00
John Wellbelove
737c1c8abd Removed unecessary base class 2016-01-09 11:21:12 +00:00
John Wellbelove
b794ce623a Added iterator test for empty container 2016-01-09 10:28:56 +00:00
John Wellbelove
1c4dbac759 Added an etl::map test. 2016-01-09 10:28:14 +00:00
John Wellbelove
2abef4aa40 Added a "No Unit Tests" debug configuration 2016-01-09 10:27:08 +00:00
John Wellbelove
231721a980 Changed node base pointer to more unique name 2016-01-09 10:25:27 +00:00
John Wellbelove
0e1eaa3aef Removed unnecessary priority_queue_base 2016-01-09 10:23:53 +00:00
John Wellbelove
31a22d93af Moved call to initialise() to after construction completed. 2016-01-09 10:05:14 +00:00
John Wellbelove
9cfbe76358 Merge remote-tracking branch 'origin/development' 2016-01-07 21:47:23 +00:00
John Wellbelove
8aff17435c Added ETL_CHECK_PUSH_POP to enable empry/full checks for push & pop functions. Normally this not be set as the code will be doing this check when necessary. 2016-01-07 17:34:37 +00:00
John Wellbelove
94914dc31d Merge remote-tracking branch 'origin/development' 7.2 2015-12-25 00:02:59 +00:00
John Wellbelove
dc374a3185 Error in ETL_ASSERT definition. Condition should be (!(b)) 2015-12-25 00:01:11 +00:00
John Wellbelove
c7abb82309 Merge remote-tracking branch 'origin/development' 7.1 2015-12-24 12:17:29 +00:00
John Wellbelove
6d2170ad3e Keil project changes 2015-12-24 12:16:07 +00:00
John Wellbelove
7b9c598226 Changed error handling. Macros do not evaluate to true or false any more.
If ETL_LOG_ERRORS is defined then the error handler is called before the exception is thrown or the assert is called.
ETL_LOG_ERRORS may be used in conjunction with ETL_THROW_EXCEPTIONS or default assert methods. It is not valid for ETL_NO_CHECKS.
2015-12-24 12:08:04 +00:00
John Wellbelove
831d5dc98e Merge branch 'development' 7 7.0 2015-12-18 19:49:51 +00:00
John Wellbelove
d96a10cdcf IAR compatibilty. 2015-12-18 19:46:02 +00:00
John Wellbelove
f04e9d7302 Added tests for multiple same value insert. 2015-12-18 19:45:52 +00:00
John Wellbelove
922a5abf28 IAR compatibilty. 2015-12-18 19:45:17 +00:00
John Wellbelove
4a0fcb0f70 IAR compatibilty.
Fixed bug in 'insert' where existing element was not checked for.
2015-12-18 19:44:53 +00:00
John Wellbelove
e744c11b50 Fixes for IAR compiler compatibilty 2015-12-17 10:46:20 +00:00
John Wellbelove
57011fc1f3 Merge remote-tracking branch 'origin/development' 2015-12-16 11:37:36 +00:00
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
81f76302f2 Merge remote-tracking branch 'origin/development' 2015-12-11 21:00:12 +00:00
John Wellbelove
57b3864449 Missing closing ) 2015-12-11 20:58:52 +00:00
John Wellbelove
a2c8ea9e77 Merge remote-tracking branch 'origin/master' 2015-12-11 19:13:27 +00:00
John Wellbelove
4aea474a4b Merge remote-tracking branch 'origin/development' 2015-12-11 19:11:02 +00:00
John Wellbelove
f6ee2b50f9 Updated Code::Blocks projects files 2015-12-11 19:07:41 +00:00
John Wellbelove
b48c6e052b Updated VS projects files 2015-12-11 19:07:19 +00:00
John Wellbelove
ac291bab2a Updated Keil projects files 2015-12-11 19:07:01 +00:00
John Wellbelove
2645cdf3e0 Casts to keep GCC happy 2015-12-11 19:06:33 +00:00
John Wellbelove
dea534aaa8 Modified to eradicate unused variable warning. 2015-12-11 19:06:12 +00:00
John Wellbelove
eb2a60ee8f Modified to eradicate unused variable warning in GCC 2015-12-11 19:05:49 +00:00
John Wellbelove
ee916a3c48 Modigied wchar_t entries for compatibility with GCC. 2015-12-11 19:03:59 +00:00
John Wellbelove
b055c3722e Modified error_handler include. 2015-12-11 19:03:23 +00:00
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
John Wellbelove
a599c3e270 Added code for GCC warnings 2015-12-11 19:01:54 +00:00
John Wellbelove
c279c0ce03 Modified error_handler include. 2015-12-11 19:01:12 +00:00
John Wellbelove
19c10d3ef7 Modified error_handler include. 2015-12-11 19:00:57 +00:00
John Wellbelove
d587ec7fc2 Modified error_handler include. 2015-12-11 19:00:28 +00:00
John Wellbelove
b46357da05 Added mask to final result of fold_bits() 2015-12-11 18:59:55 +00:00
John Wellbelove
69575b0e99 Removed redundant make_fixed_iterator() 2015-12-11 13:05:12 +00:00
John Wellbelove
0c1ba31fe8 Update README.md
Modified main features
6.0
2015-12-11 09:06:58 +00:00
John Wellbelove
0025ab6ef5 Merge remote-tracking branch 'origin/development' 2015-12-10 14:11:20 +00:00
John Wellbelove
64c33cb4dd Moved non-user headers to private sub-directory. 2015-12-10 14:09:57 +00:00
John Wellbelove
72fc0e451d Moved non-user headers to private sub-directory. 2015-12-10 14:09:22 +00:00
John Wellbelove
62f807ca72 Moved non-user headers to private sub-directory. 2015-12-10 14:08:59 +00:00