Skip to content

Conversation

@abadams
Copy link
Member

@abadams abadams commented Oct 22, 2021

Takes care of the TODO from the previous PR exposing JITUserContext.

This deprecates things like set_custom_error in favor of just mutating the jit_handlers() struct

Copy link
Contributor

@steven-johnson steven-johnson left a comment

Choose a reason for hiding this comment

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

LGTM except for comments

src/JITModule.h Outdated
/** A set of custom overrides of runtime functions */
struct JITHandlers {
/** Set the function called to print messages from the runtime.
* If you are compiling statically, you can also just define your
Copy link
Contributor

Choose a reason for hiding this comment

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

The comments about "if you are compiling statically" are arguably confusing and/or misplaced here. I'd suggest replacing everything after the first sentence with something like "(Note that this applies only when jitting code; if you are doing ahead-of-time compilation, see [README_foo.md or wherever we document this, rather than trying to replicate that documentation here])".

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@abadams abadams merged commit 86cb6c7 into master Oct 26, 2021
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.

3 participants