summaryrefslogtreecommitdiff
path: root/src/voidc.cc
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-03-02 11:59:47 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-03-02 11:59:47 +0100
commitb0d5c39d8acbd1429990e383ddd67226fc7bc0f9 (patch)
tree0f4ad595859fc4c26460da258dca63c80970f7bb /src/voidc.cc
parenta07e37de3f2b56b577da32b33d3dec45e0cd43b6 (diff)
working on source control
Diffstat (limited to 'src/voidc.cc')
-rw-r--r--src/voidc.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/voidc.cc b/src/voidc.cc
index e69b8a6..8110184 100644
--- a/src/voidc.cc
+++ b/src/voidc.cc
@@ -1,7 +1,8 @@
-#include "memory.cc"
-#include "common.cc"
#include <cstring>
+#include "common.cc"
+#include "memory.cc"
+
static const char* SOURCE = R"(
#include <stdlib.h>
@@ -10,13 +11,13 @@ int main() {
}
)";
-static const String SOURCE_STRING = { (u8*)SOURCE, strlen(SOURCE) };
+static const String SOURCE_STRING = {(u8*)SOURCE, strlen(SOURCE)};
int main() {
String source;
slice_copy(heap_allocator(), &SOURCE_STRING, &source);
slice_write(&source, stdout);
-
+
slice_deallocate(heap_allocator(), &source);
}