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

Turn debug module into macros #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Turn debug module into macros #67

wants to merge 2 commits into from

Conversation

axic
Copy link
Member

@axic axic commented May 30, 2019

Fixes #63.

src/debug.rs Outdated Show resolved Hide resolved
@axic axic marked this pull request as ready for review June 4, 2019 11:31
@aarlt
Copy link

aarlt commented Jun 12, 2019

oops.. didnt see this :D

src/debug.rs Outdated
macro_rules! print32 {
($e:expr) => {
#[cfg(debug_assertions)]
::ewasm_api::debug::print32($e)
Copy link

@aarlt aarlt Jun 13, 2019

Choose a reason for hiding this comment

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

does this really work? i think you can only call public functions from a macro - at least if the macro is used within a different module (e.g. outside debug). or am i wrong?

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.

Turn the debug feature into a macro
3 participants