Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGrulich committed Mar 24, 2024
1 parent a7823b3 commit 60b8329
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nautilus-api/include/Interface/DataTypes/Val.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ namespace nautilus {


#ifdef USE_SOURCE_LOCATION_TRACKING

inline val<ValueType>() : state(tracing::traceConstant(0)) {
if (tracing::inTracer()) {
tracing::getVarRefMap()[state]++;
}
};

inline val<ValueType>(ValueType value, const std::source_location loc = std::source_location::current())
: value(value), loc(loc), state(tracing::traceConstant(value)) {
Expand Down

0 comments on commit 60b8329

Please sign in to comment.