Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LinkedList by
Diff: LinkedList.cpp
- Revision:
- 7:4ed66162aaa8
- Parent:
- 6:e3ab7684c395
- Child:
- 8:918b196b0ac4
--- a/LinkedList.cpp Tue May 14 23:06:11 2013 +0000
+++ b/LinkedList.cpp Sun Feb 23 14:09:48 2014 +0000
@@ -21,7 +21,6 @@
*/
#include "LinkedList.h" // api wrapper
-#include "LogUtil.h"
template<class retT>
LinkedList<retT>::LinkedList()
@@ -48,7 +47,7 @@
// make sure the new object was allocated
if (0 == new_node)
{
- ERROR("Memory allocation failed\n");
+ error("Memory allocation failed\n");
}
// update the next item in the list to the current head
new_node->next = _head;
@@ -66,7 +65,7 @@
// // make sure the new object was allocated
// if (0 == new_node)
// {
-// ERROR("Memory allocation failed\n");
+// error("Memory allocation failed\n");
// }
// retT *current = _head->next;
// retT *prev = _head;
@@ -97,7 +96,7 @@
// make sure the new object was allocated
if (0 == new_node)
{
- ERROR("Memory allocation failed\n");
+ error("Memory allocation failed\n");
}
// store the address to the linked datatype
new_node->data = data;
