File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 # https://learn.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-170#create-your-own-command-prompt-shortcut
4747 run : |
4848 call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat"
49- cl.exe /Fe:foo foo .c
50- foo .exe
49+ cl.exe /Fe:nob nob .c
50+ nob .exe
5151 - name : Build how_to-s
5252 shell : cmd
5353 run : |
Original file line number Diff line number Diff line change 11#include <stdio.h>
22
3- typedef struct {
4- int a ;
5- int b ;
6- int c ;
3+ typedef struct Arguments {
4+ int * arg ;
5+
6+ int thing ;
77} Arguments ;
88
99void func_ (int benis , Arguments args )
1010{
11- printf (".a = %d\n" , args .a );
12- printf (".b = %d\n" , args .b );
13- printf (".c = %d\n" , args .c );
11+ printf (".arg = %p\n" , args .arg );
12+ printf (".thing = %d\n" , args .thing );
1413}
1514
1615#define func__ (benis , ...) func_( (benis), (Arguments){0, __VA_ARGS__})
1716
1817int main () {
19- func__ (123 );
20- printf ("------------------------------\n" );
21- func__ (123 , .a = 69 );
22- printf ("------------------------------\n" );
23- func__ (123 , .b = 420 , .a = 69 );
24- printf ("------------------------------\n" );
25- func__ (123 , .c = 1337 , .b = 420 , .a = 69 );
26- printf ("------------------------------\n" );
18+ func__ (123 , .thing = 69 );
2719}
You can’t perform that action at this time.
0 commit comments