From e3bb9a4ddc0465d4a75ca64e36416a9568c74d27 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 19 Oct 2024 21:43:48 +0300 Subject: some basic programs run --- src/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 85dd445..4e368f5 100644 --- a/src/main.c +++ b/src/main.c @@ -9,8 +9,12 @@ int main(int argc, char *argv[]) } struct lyn lyn = lyn_create(); + if (lyn_init(&lyn)) { + lyn_destroy(&lyn); + return -1; + } + int ret = lyn_eval_file(&lyn, argv[1]); lyn_destroy(&lyn); - return ret; } -- cgit v1.2.3