Skip to content

Conversation

@Lightning11wins
Copy link
Contributor

Improves the developer experience when using the NewMalloc system by using a cleaner code structure with comments to enable faster speed-reading. This new code intends to make it easy for readers to quickly skim code without getting lost in irrelevant logic for features that might not even be enabled.

This branch also introduces some improvements in the final commit, the largest of which is adding nmSysGetSize(), which I anticipate will be very useful in some scenarios. (I already have at least one place I want to use it.)

I recommend that Greg take ownership of the first commit so that we can avoid having me get git blamed for reformatting most of the file with very minimal changes to any of the logic.

Add nmSysGetSize().
Add a warning when using nmStats() with the necessary stat tracking disabled.
Update errors to print to stderr instead of stdout.
Abstract registered block name printing into a public helper function.
@Lightning11wins
Copy link
Contributor Author

This PR is the revised version of #82, which will now be closed.

Similarly, merging this PR closes #81.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants