-
Notifications
You must be signed in to change notification settings - Fork 822
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
generate null funcs #295
generate null funcs #295
Conversation
bors try |
lib/runtime-core/src/macros.rs
Outdated
|
||
#[macro_export] | ||
#[doc(hidden)] | ||
macro_rules! ecapseman { |
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.
What does ecapseman
mean?
lib/emscripten/src/lib.rs
Outdated
import_object | ||
} | ||
|
||
pub fn nullfunc_x(ctx: &mut Ctx, _x: u32) { |
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.
Should be just nullfunc
? (without an x)
pub fn nullfunc(ctx: &mut Ctx) {
...
}
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.
sure, sound good
bors r+ |
295: generate null funcs r=syrusakbary a=xmclark This PR automates adding the `nullfunc` imports. A new macro is added to help working with namespaces. All functions in the env namespace that start with `nullFunc_` will be added to the import object. This is easy because *all* null funcs have the same expected signature. Co-authored-by: Mackenzie Clark <mackenzie.a.z.c@gmail.com>
This PR automates adding the
nullfunc
imports. A new macro is added to help working with namespaces. All functions in the env namespace that start withnullFunc_
will be added to the import object. This is easy because all null funcs have the same expected signature.