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

Create a macro for the entry point #59

Closed
axic opened this issue May 28, 2019 · 0 comments · Fixed by #70
Closed

Create a macro for the entry point #59

axic opened this issue May 28, 2019 · 0 comments · Fixed by #70
Labels
help wanted Extra attention is needed

Comments

@axic
Copy link
Member

axic commented May 28, 2019

Maybe #5 will solve this or we could iteratively add smaller features.

The suggestion is that we add a macro, which generates the right signature (main()) as a C function on the wasm32 target and generates a stub or a warning/error on other targets.

Such as:

ewasm!({
  ewasm_api::abort()
})
@axic axic added the help wanted Extra attention is needed label May 28, 2019
@axic axic closed this as completed in #70 Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant