diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-23 23:58:30 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-23 23:58:30 +0330 |
commit | 3c9aea642e3b2f4083705f1cd42fa911d35ee696 (patch) | |
tree | d990b2ffdb63161a9aef7cce20e5714461f86085 /src/main.c | |
parent | 093c3bece426686b175db9ddaecd6abc8908fd87 (diff) |
add way to call C functions
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,5 +1,6 @@ #include "compiler/ast-tree.h" #include "runner/runner.h" +#include "utils/dl.h" #include "utils/file.h" #include "utils/log.h" #include <stdio.h> @@ -70,6 +71,7 @@ static int run(const char *filePath) { int main(int argc, char *argv[]) { fileInit(); + dynamicLibraryInit(); if (argc < 2) { // compileRun("test/main.felan", "build/out", false); @@ -79,6 +81,7 @@ int main(int argc, char *argv[]) { } const int ret = run(argv[1]); + dynamicLibraryDestroy(); fileDelete(); return ret; } |