diff options
| author | ruki <[email protected]> | 2025-11-09 19:51:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-09 19:51:04 +0800 |
| commit | 91f6ed08fe32e36d555129efa4afdd82113f0eb4 (patch) | |
| tree | 2bfee23488c8479c83833677262ee83b9e362cbb /xmake/templates/c++/module.binary/project/modules | |
| parent | c89c94bf89e98c8e42e786aacc0b334a57474179 (diff) | |
format tests and templates
Diffstat (limited to 'xmake/templates/c++/module.binary/project/modules')
| -rw-r--r-- | xmake/templates/c++/module.binary/project/modules/binary/bar/src/add.cpp | 2 | ||||
| -rw-r--r-- | xmake/templates/c++/module.binary/project/modules/binary/bar/src/sub.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/xmake/templates/c++/module.binary/project/modules/binary/bar/src/add.cpp b/xmake/templates/c++/module.binary/project/modules/binary/bar/src/add.cpp index e19d07e12..93fdf0ad8 100644 --- a/xmake/templates/c++/module.binary/project/modules/binary/bar/src/add.cpp +++ b/xmake/templates/c++/module.binary/project/modules/binary/bar/src/add.cpp @@ -1,7 +1,7 @@ #include <stdio.h> #include <stdlib.h> -int main(int argc, char** argv) { +int main(int argc, char **argv) { int a = atoi(argv[1]); int b = atoi(argv[2]); printf("%d", a + b); diff --git a/xmake/templates/c++/module.binary/project/modules/binary/bar/src/sub.cpp b/xmake/templates/c++/module.binary/project/modules/binary/bar/src/sub.cpp index 980289d1a..ae7b6d1f2 100644 --- a/xmake/templates/c++/module.binary/project/modules/binary/bar/src/sub.cpp +++ b/xmake/templates/c++/module.binary/project/modules/binary/bar/src/sub.cpp @@ -1,10 +1,9 @@ #include <stdio.h> #include <stdlib.h> -int main(int argc, char** argv) { +int main(int argc, char **argv) { int a = atoi(argv[1]); int b = atoi(argv[2]); printf("%d", a - b); return 0; } - |
