@@ -22,29 +22,42 @@ namespace argon::vm {
22
22
constexpr const unsigned short kVCoreDefault = 4 ;
23
23
constexpr const unsigned short kVCoreQueueLengthMax = 256 ;
24
24
25
- argon::vm::datatype::ArObject *EvalRaiseError (datatype::Function *func, datatype::ArObject **argv,
26
- datatype::ArSize argc, OpCodeCallMode mode);
25
+ argon::vm::datatype::ArObject *EvalRaiseError (datatype::Function *func,
26
+ datatype::ArObject **argv,
27
+ datatype::ArSize argc,
28
+ OpCodeCallMode mode);
29
+
30
+ argon::vm::datatype::ArObject *EvalSync (datatype::Function *func,
31
+ datatype::ArObject **argv,
32
+ datatype::ArSize argc,
33
+ OpCodeCallMode mode);
27
34
28
35
argon::vm::datatype::ArObject *GetLastError ();
29
36
30
- argon::vm::datatype::Future *EvalAsync (Context *context, datatype::Function *func, datatype::ArObject **argv,
31
- datatype::ArSize argc, OpCodeCallMode mode);
37
+ argon::vm::datatype::Future *EvalAsync (Context *context,
38
+ datatype::Function *func,
39
+ datatype::ArObject **argv,
40
+ datatype::ArSize argc,
41
+ OpCodeCallMode mode);
32
42
33
43
argon::vm::datatype::Result *Eval (Context *context, datatype::Code *code, datatype::Namespace *ns);
34
44
35
- argon::vm::datatype::Result *Eval (datatype::Function *func, datatype::ArObject **argv,
36
- datatype::ArSize argc, OpCodeCallMode mode);
45
+ argon::vm::datatype::Result *Eval (datatype::Function *func,
46
+ datatype::ArObject **argv,
47
+ datatype::ArSize argc,
48
+ OpCodeCallMode mode);
37
49
38
- inline argon::vm::datatype::Result *
39
- Eval (datatype::Function *func, datatype::ArObject **argv, datatype::ArSize argc) {
50
+ inline argon::vm::datatype::Result *Eval (datatype::Function *func,
51
+ datatype::ArObject **argv,
52
+ datatype::ArSize argc) {
40
53
return Eval (func, argv, argc, OpCodeCallMode::FASTCALL);
41
54
}
42
55
43
- argon::vm::datatype::Result *EvalFile (Context *context, const char *name,
44
- const char *path, datatype::Namespace *ns);
56
+ argon::vm::datatype::Result *EvalFile (Context *context, const char *name, const char *path,
57
+ datatype::Namespace *ns);
45
58
46
- argon::vm::datatype::Result *EvalString (Context *context, const char *name,
47
- const char *source, datatype::Namespace *ns);
59
+ argon::vm::datatype::Result *EvalString (Context *context, const char *name, const char *source,
60
+ datatype::Namespace *ns);
48
61
49
62
argon::vm::datatype::String *GetExecutableName ();
50
63
0 commit comments