Skip to content

Commit

Permalink
[#98]: Fix issue with SCOPED_TIMER macro
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Aug 11, 2023
1 parent e41b1f1 commit 77d731d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions engine/utils/time/scoped_timer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ class ScopedTimer
TimeStep* timeStep_ = nullptr;
};

// NOLINTNEXTLINE
#define SCOPED_TIMER(str) looper::time::ScopedTimer t(str);
// NOLINTBEGIN
#define TOKEN_PASTE(x, y) x##y
#define TOKEN_PASTE2(x, y) TOKEN_PASTE(x, y)
#define SCOPED_TIMER(str) looper::time::ScopedTimer TOKEN_PASTE2(timer_, __LINE__)(str);
// NOLINTEND

} // namespace looper::time

0 comments on commit 77d731d

Please sign in to comment.