Skip to content

Commit bf4b91f

Browse files
committed
Revert "Quick test program to make sure that everything is really working"
This reverts commit 4e7de93.
1 parent 4e7de93 commit bf4b91f

2 files changed

Lines changed: 9 additions & 17 deletions

File tree

.github/workflows/nob.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
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: |

foo.c

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
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

99
void 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

1817
int 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
}

0 commit comments

Comments
 (0)