Lots of work
This commit is contained in:
9
example/executable/chinookfile
Normal file
9
example/executable/chinookfile
Normal file
@@ -0,0 +1,9 @@
|
||||
name: executable
|
||||
gpid: examples
|
||||
semv: 1.0.0
|
||||
|
||||
targets:
|
||||
- name: example
|
||||
type: executable
|
||||
srcs:
|
||||
- ./entry.cpp
|
||||
11
example/executable/entry.cpp
Normal file
11
example/executable/entry.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <iostream>
|
||||
#if __cplusplus >= 202302L
|
||||
# define print(x) std::print(#x)
|
||||
#else // Old C++ version.
|
||||
# define print(x) std::cout << #x << std::endl
|
||||
#endif // Check C++ version.
|
||||
|
||||
|
||||
int main() {
|
||||
print("Hello, World!");
|
||||
}
|
||||
Reference in New Issue
Block a user