Skip to content

Commit

Permalink
cleanup debug, make location comparable+printable
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Jul 2, 2024
1 parent d83779c commit 7170d8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 4 additions & 0 deletions include/osr/lookup.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include "cista/reflection/printable.h"

#include "osr/ways.h"

#include "utl/cflow.h"
Expand All @@ -11,6 +13,8 @@
namespace osr {

struct location {
CISTA_PRINTABLE(location)
CISTA_FRIEND_COMPARABLE(location)
geo::latlng pos_;
level_t lvl_;
};
Expand Down
7 changes: 0 additions & 7 deletions include/osr/ways.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@

namespace osr {

#define OSR_DEBUG
#ifdef OSR_DEBUG
#define trace(...) fmt::println(std::cerr, __VA_ARGS__)
#else
#define trace(...)
#endif

struct resolved_restriction {
enum class type { kNo, kOnly } type_;
way_idx_t from_, to_;
Expand Down

0 comments on commit 7170d8b

Please sign in to comment.