| 1 |
// Copyright(C) 1999-2020 National Technology & Engineering Solutions |
| 2 |
// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 3 |
// NTESS, the U.S. Government retains certain rights in this software. |
| 4 |
// |
| 5 |
// See packages/seacas/LICENSE for details |
| 6 |
|
| 7 |
#include "Ioss_Tracer.h" |
| 8 |
#include "Ioss_Utils.h" |
| 9 |
#include <cassert> |
| 10 |
#include <fmt/ostream.h> |
| 11 |
|
| 12 |
namespace Ioss { |
| 13 |
int Tracer::level; |
| 14 |
|
| 15 |
Tracer::Tracer(const char *function) |
| 16 |
{ |
| 17 |
fmt::print(Ioss::DebugOut(), "Entering Function: {} at level {}\n", function, ++level); |
| 18 |
assert(level == 1); |
| 19 |
} |
| 20 |
|
| 21 |
Tracer::~Tracer() { --level; } |
| 22 |
} // namespace Ioss |