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

some fixes #1308

Merged
merged 9 commits into from
Apr 15, 2022
Merged

some fixes #1308

merged 9 commits into from
Apr 15, 2022

Conversation

ManDude
Copy link
Member

@ManDude ManDude commented Apr 15, 2022

)
)
)

(defmacro awhen (condition &rest body)
"Anaphoric when, similar to Common Lisp"
Copy link
Collaborator

Choose a reason for hiding this comment

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

thanks dictionary, this makes it more clear
image

Copy link
Member Author

Choose a reason for hiding this comment

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

Lol, this is what I found first http://community.schemewiki.org/?anaphoric-if

Copy link
Member Author

Choose a reason for hiding this comment

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

(I don't think "anaphoric when" is a lisp thing, only "anaphoric if", so I'm kind of cheating)

if (all_unique_names.find(name) != all_unique_names.end() &&
merged_objs.find(name) == merged_objs.end()) {
lg::error("Object file {} appears multiple times with the same name.", name);
}
if (merged_objs.find(name) == merged_objs.end() ||
Copy link
Collaborator

Choose a reason for hiding this comment

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

thanks for fixing this

@@ -35,7 +36,7 @@ class Serializer {
* later be accessed with get_save_result.
*/
Serializer() : m_writing(true) {
const size_t initial_size = 32;
constexpr size_t initial_size = 32 * 1024 * 1024;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think I have a better fix for this. There's a silly bug so it resizes on every addition 🤦‍♂️

Copy link
Collaborator

Choose a reason for hiding this comment

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

but this is fine for now

@water111 water111 merged commit 65de778 into open-goal:master Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants