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

tracef does not format arguments when running using w4 run-native #417

Open
TimDeve opened this issue Mar 7, 2022 · 1 comment
Open

Comments

@TimDeve
Copy link

TimDeve commented Mar 7, 2022

tracef does not format arguments when running using run-native.

Example code:

#include "wasm4.h"

void start() {
  tracef("String: %s", "Ok");
  tracef("Int: %d", 42);
}

Example output with w4 run:

String: Ok
Int: 42

Example out with w4 run-native:

String: %s
Int: %d

Edit:
I wrote this issue before I found the commit responsible, I feel it's still worthwhile to have an issue to track it if that's okay?

@aduros
Copy link
Owner

aduros commented Mar 7, 2022

Yes, thanks for opening this!

I have no idea why enabling vprintf crashes on release builds only, but if you get it working, please open a PR 😄

jacereda added a commit to jacereda/wasm4 that referenced this issue Feb 21, 2023
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

No branches or pull requests

2 participants