History

Update auto-generated code for Sys and Math modules

arr committed 9 years ago

Commit 6892bc61 parent ef24d073 files · +66 −54Browse files

Showing the changes to src/vm/sys/Sysmod.cpp (1 of 3 files). Show all

Unified · Split

src/vm/sys/Sysmod.cpp+12−0
@@ -327,6 +327,9 @@ void · 326 unmodified lines
327327 Sys_aprint(vm_registers_t &r, vm_t &vm)
328328 {
329329 auto &fp = r.stack.peek_frame()->base<F_Sys_aprint>();
330+
331+ //disvm::runtime::dec_ref_count_and_free(vm_alloc_t::from_allocation(*fp.ret));
332+ //*fp.ret = nullptr;
330333 throw vm_system_exception{ "Function not implemented" };
331334 }
332335
@@ -494,6 +497,9 @@ void · 161 unmodified lines
494497 Sys_fauth(vm_registers_t &r, vm_t &vm)
495498 {
496499 auto &fp = r.stack.peek_frame()->base<F_Sys_fauth>();
500+
501+ //disvm::runtime::dec_ref_count_and_free(vm_alloc_t::from_allocation(*fp.ret));
502+ //*fp.ret = nullptr;
497503 throw vm_system_exception{ "Function not implemented" };
498504 }
499505
@@ -501,6 +507,9 @@ void · 1 unmodified line
501507 Sys_fd2path(vm_registers_t &r, vm_t &vm)
502508 {
503509 auto &fp = r.stack.peek_frame()->base<F_Sys_fd2path>();
510+
511+ //disvm::runtime::dec_ref_count_and_free(vm_alloc_t::from_allocation(*fp.ret));
512+ //*fp.ret = nullptr;
504513 throw vm_system_exception{ "Function not implemented" };
505514 }
506515
@@ -524,6 +533,9 @@ void · 17 unmodified lines
524533 Sys_file2chan(vm_registers_t &r, vm_t &vm)
525534 {
526535 auto &fp = r.stack.peek_frame()->base<F_Sys_file2chan>();
536+
537+ //disvm::runtime::dec_ref_count_and_free(vm_alloc_t::from_allocation(*fp.ret));
538+ //*fp.ret = nullptr;
527539 throw vm_system_exception{ "Function not implemented" };
528540 }
529541