This commit is contained in:
Valk Richard Li 2020-09-09 03:17:28 -07:00 committed by GitHub
parent 824beec2bc
commit da13cdff27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ int nasal_runtime::builtin_print(int local_scope_addr)
case vm_function:std::cout<<"func(...){...}";break;
case vm_closure:std::cout<<"closure{{...}}";break;
}
std::cout<<(i==size-1? '\n':',');
if(i==size-1)
std::cout<<std::endl;
}
int ret_addr=nasal_vm.gc_alloc();
nasal_vm.gc_get(ret_addr).set_type(vm_nil);