add function object

This commit is contained in:
2025-06-26 05:11:34 +01:00
parent a275a0a0ad
commit a9d0ba0318
12 changed files with 80 additions and 11 deletions

View File

@@ -5,6 +5,7 @@
#include "objects/object.h"
#include "objects/string/string.h"
#include "objects/type/type.h"
#include "objects/functions/functions.h"
#include <fcntl.h>
#include <stddef.h>
#include <stdint.h>
@@ -16,6 +17,7 @@ void init_types() {
BASE_CLASS = init_argon_class("BASE_CLASS");
init_type();
init_function_type();
init_null();
init_string_type();
@@ -53,6 +55,9 @@ void run_instruction(Translated *translated, RuntimeState *state, struct Stack s
case OP_LOAD_CONST:
load_const(translated,state);
break;
case OP_LOAD_FUNCTION:
load_argon_function(translated, state, stack);
break;
}
}