Initial rework

This commit is contained in:
2026-06-25 02:45:43 +00:00
commit 24b46f7fc2
56 changed files with 2166 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
name: archive
gpid: examples
semv: 1.0.0
targets:
- name: example
type: archive
srcs: [./example.cpp]
- name: hello
type: program
deps: [example]
srcs: [./entry.cpp]
+5
View File
@@ -0,0 +1,5 @@
extern "C" void print(const char* str);
int main() {
print("Hello, World!");
}
+11
View File
@@ -0,0 +1,11 @@
#include <iostream>
#if __cplusplus >= 202302L
# define do_print(x) std::print(x)
#else // Old C++ version.
# define do_print(x) std::cout << x << std::endl
#endif // Check C++ version.
extern "C" void print(const char* str) {
do_print(str);
}