mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-05-02 19:00:47 +08:00
✨ use new way of constructing var objects
This commit is contained in:
@@ -633,7 +633,7 @@ var fib(var* args,usize size,gc* ngc){
|
||||
// ok, you must know that vm_num now is not managed by gc
|
||||
// if want to return a gc object, use ngc->alloc(type)
|
||||
// usage of gc is the same as adding a native function
|
||||
return {vm_num,fibonaci(num.tonum())};
|
||||
return var::num(fibonaci(num.tonum()));
|
||||
}
|
||||
|
||||
// then put function name and address into this table
|
||||
|
||||
Reference in New Issue
Block a user