Initial rework
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
name: program
|
||||
gpid: examples
|
||||
semv: 1.0.0
|
||||
|
||||
targets:
|
||||
- name: hello
|
||||
type: program
|
||||
srcs: [./entry.cpp]
|
||||
@@ -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