Skip to content

Commit

Permalink
Remove trace offset for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Dec 6, 2023
1 parent f643dc6 commit 2ed9f82
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/assert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,12 +613,7 @@ namespace libassert::detail {
end = i;
}
}
#if !LIBASSERT_IS_MSVC // TODO: Wrong
const int start_offset = 0;
#else
const int start_offset = 1; // accommodate for lambda being used as statement expression
#endif
return std::pair(start + start_offset, end);
return std::pair(start, end);
}

LIBASSERT_ATTR_COLD
Expand Down

0 comments on commit 2ed9f82

Please sign in to comment.