diff options
| author | ruki <[email protected]> | 2026-02-28 21:55:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-02-28 21:55:13 +0800 |
| commit | 5280c9480cb0d7d3ab55d516e296152ec273e14a (patch) | |
| tree | af041546121010fdad5639c231ad2b2a4900aa12 /xmake/templates/c++/static/project/src | |
| parent | 71e10b70334401d46c47f574c8f46fcd20ccf818 (diff) | |
rewrite templates
Diffstat (limited to 'xmake/templates/c++/static/project/src')
| -rw-r--r-- | xmake/templates/c++/static/project/src/foo.cpp | 5 | ||||
| -rw-r--r-- | xmake/templates/c++/static/project/src/foo.h | 9 | ||||
| -rw-r--r-- | xmake/templates/c++/static/project/src/main.cpp | 7 |
3 files changed, 0 insertions, 21 deletions
diff --git a/xmake/templates/c++/static/project/src/foo.cpp b/xmake/templates/c++/static/project/src/foo.cpp deleted file mode 100644 index 1a1fb3425..000000000 --- a/xmake/templates/c++/static/project/src/foo.cpp +++ /dev/null @@ -1,5 +0,0 @@ -#include "foo.h" - -int add(int a, int b) { - return a + b; -} diff --git a/xmake/templates/c++/static/project/src/foo.h b/xmake/templates/c++/static/project/src/foo.h deleted file mode 100644 index d2506bca9..000000000 --- a/xmake/templates/c++/static/project/src/foo.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifdef __cplusplus -extern "C" { -#endif - -int add(int a, int b); - -#ifdef __cplusplus -} -#endif diff --git a/xmake/templates/c++/static/project/src/main.cpp b/xmake/templates/c++/static/project/src/main.cpp deleted file mode 100644 index 3834ee4d3..000000000 --- a/xmake/templates/c++/static/project/src/main.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include "foo.h" -#include <iostream> - -int main(int argc, char **argv) { - std::cout << "add(1, 2) = " << add(1, 2) << std::endl; - return 0; -} |
