Created
February 2, 2018 18:24
-
-
Save paullaffitte/28dc2b8e33dcec23e88d8be44c0a7ab9 to your computer and use it in GitHub Desktop.
debugging macro for malloc developpement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define PRINTF(...) \ | |
do { \ | |
char buffer[10000]; \ | |
sprintf(buffer, __VA_ARGS__); \ | |
write(1, buffer, strlen(buffer)); \ | |
} while (0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment