Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <unistd.h>
- #include <stdarg.h>
- #define SRCSHOW(format, ...) \
- printf("%s/%s [%d]: ", getcwd((char[100]){}, 100), __FILE__, __LINE__); \
- printf(format, __VA_ARGS__); \
- printf("\n"); \
- int main(void) {
- SRCSHOW("x=%g, y=%g", 0.5, -7.9);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement