optimize vm

This commit is contained in:
ValKmjolnir
2023-08-10 00:40:00 +08:00
parent d690c779b8
commit 527cb5277b
13 changed files with 66 additions and 17 deletions

View File

@@ -1,12 +1,5 @@
#include "nasal_gc.h"
void filehandle_destructor(void* ptr) {
if ((FILE*)ptr==stdin) {
return;
}
fclose((FILE*)ptr);
}
void dir_entry_destructor(void* ptr) {
#ifndef _MSC_VER
closedir((DIR*)ptr);