forked from xxq250/Nasal-Interpreter
⚡ optimize vm
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user