wip i have something with va_args
This commit is contained in:
@@ -1,9 +1,56 @@
|
|||||||
|
//#include <stdio.h>
|
||||||
|
//#define PRINT "test"
|
||||||
|
//#define FT(x) int main(){\
|
||||||
|
// char *to_print = "hello "x" hello";\
|
||||||
|
// printf("%s", to_print);\
|
||||||
|
// return 0;\
|
||||||
|
//}
|
||||||
|
//#define SFT(x) FT(x)
|
||||||
|
//
|
||||||
|
//FT(PRINT)
|
||||||
|
|
||||||
|
|
||||||
|
//#include <stdio.h>
|
||||||
|
//#define PRINT to_print, 10
|
||||||
|
//#define FT(...) int main(){\
|
||||||
|
// char *to_print = "hello %c"#__VA_ARGS__" hello";\
|
||||||
|
// printf(PRINT);\
|
||||||
|
// return 0;\
|
||||||
|
//}
|
||||||
|
//#define FFT(...) FT(__VA_ARGS__)
|
||||||
|
//
|
||||||
|
//FFT(PRINT)
|
||||||
|
|
||||||
|
|
||||||
|
//#include <stdio.h>
|
||||||
|
//#define PRINT to_print, 10
|
||||||
|
//#define FT(x) int main(){\
|
||||||
|
// char *to_print = "hello %c"#x" hello";\
|
||||||
|
// printf(x);\
|
||||||
|
// return 0;\
|
||||||
|
//}
|
||||||
|
//
|
||||||
|
//FT(PRINT)
|
||||||
|
|
||||||
|
|
||||||
|
//#include <stdio.h>
|
||||||
|
//#define PRINT quine, 10, 10, 10, 34, quine, 34, 10, 10, 10, 10, 10
|
||||||
|
//#define FT(x) int main(){\
|
||||||
|
// char *quine = "#include <stdio.h>%c#define "#x" %c#define FT int main(){%c char *quine = %c%s%c;%c printf(PRINT);%c return 0;%c}%cFT%c";\
|
||||||
|
// printf(x);\
|
||||||
|
// return 0;\
|
||||||
|
//}
|
||||||
|
//
|
||||||
|
//FT(PRINT)
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define PRINT quine, 10, 10, 34, quine, 34, 10, 10, 10, 10, 10
|
#define PRINT quine, 10, 10, 10, 34, quine, 34, 10, 10, 10, 10, 10
|
||||||
#define FT int main(){\
|
#define FT(...) int main(){\
|
||||||
char *quine = "#include <stdio.h>%c#define FT int main(){%c char *quine = %c%s%c;%c printf(PRINT);%c return 0;%c}%cFT%c";\
|
char *quine = "#include <stdio.h>%c#define "#__VA_ARGS__" %c#define FT int main(){%c char *quine = %c%s%c;%c printf(PRINT);%c return 0;%c}%cFT%c";\
|
||||||
printf(PRINT);\
|
printf(PRINT);\
|
||||||
return 0;\
|
return 0;\
|
||||||
}
|
}
|
||||||
|
#define FFT(...) FT(__VA_ARGS__)
|
||||||
|
|
||||||
FT
|
FFT(PRINT)
|
||||||
|
|||||||
Reference in New Issue
Block a user