-
Notifications
You must be signed in to change notification settings - Fork 173
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
some fixes #1308
Conversation
goal_src/goal-lib.gc
Outdated
) | ||
) | ||
) | ||
|
||
(defmacro awhen (condition &rest body) | ||
"Anaphoric when, similar to Common Lisp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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() || |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 🤦♂️
There was a problem hiding this comment.
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
RelWithDebInfo
build for windows-clang