Skip to content

Conversation

@firewave
Copy link
Collaborator

No description provided.

@firewavefirewave changed the title cleanups related to simplecpp::Macro construction and assignmentcleaned up simplecpp::Macro construction and assignmentDec 4, 2025
@firewavefirewaveforce-pushed the macro-emplace branch 3 times, most recently from a431e1f to e3792a3CompareDecember 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(longdouble *)));
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
CollaboratorAuthor

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 freeto 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

@firewave@chrchr-github