change increment arguments to a more efficiency level & change gc.nil, gc.one, gc.zero to constant nil, one, zero

This commit is contained in:
ValKmjolnir
2022-02-04 01:51:30 +08:00
parent aa301aefc3
commit c55ce758ed
5 changed files with 67 additions and 72 deletions

View File

@@ -1063,8 +1063,8 @@ nasal_ref builtin_print(std::vector<nasal_ref>& local,nasal_gc& gc)
}
std::cout<<std::flush;
// generate return value,use gc::alloc(type) to make a new value
// or use reserved reference gc.nil/gc.one/gc.zero
return gc.nil;
// or use reserved reference nil/one/zero
return nil;
}
```