Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing global glz::trace #1544

Merged
merged 5 commits into from
Jan 3, 2025
Merged

Removing global glz::trace #1544

merged 5 commits into from
Jan 3, 2025

Conversation

stephenberry
Copy link
Owner

@stephenberry stephenberry commented Jan 3, 2025

Because C++ has inline variables and other ways to make global instances it is better to let the programmer handle global instances of glz::trace rather than offer two separate APIs.

This also removes the unnecessary glz::write_file_trace as glz::write_file_json(trace is more generic and there is no longer a global instance of the trace.

@stephenberry stephenberry merged commit b14b9e7 into main Jan 3, 2025
12 checks passed
@stephenberry stephenberry deleted the trace_refactor branch January 3, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant