Skip to content

Conversation

@firewave
Copy link
Collaborator

@firewave firewave commented Dec 4, 2025

No description provided.

@firewave firewave changed the title cleanups related to simplecpp::Macro construction and assignment cleaned up simplecpp::Macro construction and assignment Dec 4, 2025
@firewave firewave force-pushed the macro-emplace branch 3 times, most recently from a431e1f to e3792a3 Compare December 7, 2025 23:37
sizeOfType.insert(std::make_pair("float *", sizeof(float *)));
sizeOfType.insert(std::make_pair("double *", sizeof(double *)));
sizeOfType.insert(std::make_pair("long double *", sizeof(long double *)));
sizeOfType.emplace("char", sizeof(char));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block could be an init list, followed by sizeOfType.insert(rawtokens.sizeOfType.begin(), rawtokens.sizeOfType.end()).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not even macro code. I will pull this out in a separate PR and apply you suggestion.

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.

2 participants