Skip to content

Commit

Permalink
Modified error_handler include.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wellbelove committed Dec 11, 2015
1 parent 48919b3 commit b055c37
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 25 deletions.
2 changes: 1 addition & 1 deletion private/list_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SOFTWARE.
#define __ETL_LIST_BASE__

#include <stddef.h>
#include "exception.h"
#include "../exception.h"

namespace etl
{
Expand Down
11 changes: 7 additions & 4 deletions private/map_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SOFTWARE.
#define __ETL_MAP_BASE__

#include <stddef.h>
#include "exception.h"
#include "../exception.h"

namespace etl
{
Expand Down Expand Up @@ -157,9 +157,12 @@ namespace etl

protected:

static const uint8_t kLeft = 0;
static const uint8_t kRight = 1;
static const uint8_t kNeither = 2;
enum
{
kLeft = 0,
kRight = 1,
kNeither = 2
};

//*************************************************************************
/// The node element in the map.
Expand Down
2 changes: 1 addition & 1 deletion private/multimap_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SOFTWARE.
#define __ETL_MULTIMAP_BASE__

#include <stddef.h>
#include "exception.h"
#include "../exception.h"

namespace etl
{
Expand Down
2 changes: 1 addition & 1 deletion private/multiset_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SOFTWARE.
#define __ETL_MULTISET_BASE__

#include <stddef.h>
#include "exception.h"
#include "../exception.h"

namespace etl
{
Expand Down
7 changes: 2 additions & 5 deletions private/pool_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@ SOFTWARE.

#include <stddef.h>

#include "exception.h"

#ifndef ETL_THROW_EXCEPTIONS
#include "error_handler.h"
#endif
#include "../exception.h"
#include "../error_handler.h"

namespace etl
{
Expand Down
2 changes: 1 addition & 1 deletion private/priority_queue_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SOFTWARE.

#include <stddef.h>

#include "exception.h"
#include "../exception.h"

namespace etl
{
Expand Down
16 changes: 15 additions & 1 deletion private/queue_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SOFTWARE.

#include <stddef.h>

#include "exception.h"
#include "../exception.h"

namespace etl
{
Expand Down Expand Up @@ -68,6 +68,20 @@ namespace etl
}
};

//***************************************************************************
/// The exception thrown when the queue is empty.
///\ingroup queue
//***************************************************************************
class queue_empty : public queue_exception
{
public:

queue_empty()
: queue_exception("queue: empty")
{
}
};

//***************************************************************************
/// The base class for all queues.
///\ingroup queue
Expand Down
11 changes: 7 additions & 4 deletions private/set_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SOFTWARE.
#define __ETL_SET_BASE__

#include <stddef.h>
#include "exception.h"
#include "../exception.h"

namespace etl
{
Expand Down Expand Up @@ -157,9 +157,12 @@ namespace etl

protected:

static const uint8_t kLeft = 0;
static const uint8_t kRight = 1;
static const uint8_t kNeither = 2;
enum
{
kLeft = 0,
kRight = 1,
kNeither = 2
};

//*************************************************************************
/// The node element in the set.
Expand Down
2 changes: 1 addition & 1 deletion private/stack_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SOFTWARE.

#include <stddef.h>

#include "exception.h"
#include "../exception.h"

namespace etl
{
Expand Down
2 changes: 1 addition & 1 deletion private/unordered_map_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SOFTWARE.
#define __ETL_UNORDERED_MAP_BASE__

#include <stddef.h>
#include "exception.h"
#include "../exception.h"

namespace etl
{
Expand Down
7 changes: 2 additions & 5 deletions private/vector_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@ SOFTWARE.

#include <stddef.h>

#include "exception.h"

#ifndef ETL_THROW_EXCEPTIONS
#include "error_handler.h"
#endif
#include "../exception.h"
#include "../error_handler.h"

namespace etl
{
Expand Down

0 comments on commit b055c37

Please sign in to comment.