Skip to content

Commit

Permalink
Removed verbose logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Epixu committed Oct 18, 2024
1 parent 8c8e065 commit cdd45a5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/Langulus/Mesh.inl
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ namespace Langulus::A
else
LANGULUS_OOPS(Access, "Unsupported index format");
}
else LANGULUS_ERROR("Unsupported topology");
else static_assert(false, "Unsupported topology");
}
else LANGULUS_OOPS(Access, "Unsupported indexing strategy");

Expand Down
2 changes: 1 addition & 1 deletion source/Runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
//TODO
#endif

#if 1
#if 0
#define VERBOSE(...) Logger::Verbose(__VA_ARGS__)
#else
#define VERBOSE(...) LANGULUS(NOOP)
Expand Down
3 changes: 3 additions & 0 deletions source/Thing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ namespace Langulus::Entity
ENTITY_VERBOSE_SELF(
"Tearing off unit ", unit, " at ", unit->GetReferences(), " uses...");
unit->mOwners.Remove(this);

if (unit->mOwners.IsEmpty())
unit->mOwners.Reset();
}

// Propagate Teardown through the hierarchy of Things
Expand Down
2 changes: 1 addition & 1 deletion source/Thing.inl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ namespace Langulus::Entity
}
}
}
else LANGULUS_ERROR("Unsupported descriptor");
else static_assert(false, "Unsupported descriptor");
}

/// Add a child
Expand Down

0 comments on commit cdd45a5

Please sign in to comment.