wip i have something with va_args

This commit is contained in:
asus
2024-01-24 00:09:50 +01:00
parent 070175f8d1
commit 4f4f15995e

View File

@@ -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>
#define PRINT quine, 10, 10, 34, quine, 34, 10, 10, 10, 10, 10
#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";\
#define PRINT quine, 10, 10, 10, 34, quine, 34, 10, 10, 10, 10, 10
#define FT(...) int main(){\
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);\
return 0;\
}
#define FFT(...) FT(__VA_ARGS__)
FT
FFT(PRINT)