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

calls printf without ifdef #11

Open
gkasten opened this issue Feb 1, 2019 · 1 comment
Open

calls printf without ifdef #11

gkasten opened this issue Feb 1, 2019 · 1 comment

Comments

@gkasten
Copy link

gkasten commented Feb 1, 2019

The code calls printf in a few places without an ifdef.
I'm considering using this in an embedded system where printf either doesn't exist,
or can't be called in certain contexts.
Is this something you would be interested in as a pull request,
and if so what macro name would you prefer and which direction?
Thanks

@zeromus
Copy link

zeromus commented Feb 1, 2019

Can't speak for the author, but I'm interested, as I had to do the same thing. we already have TLSF_64BIT for instance so I suggest

#ifndef TLSF_PRINTF
#define TLSF_PRINTF(...) printf(__VA_ARGS__)
#endif 

and I would define it to nothing to trash the prints

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