Skip to content

Commit 908e83b

Browse files
authored
Add files via upload
1 parent 87c6739 commit 908e83b

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

Ext/System/System.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func Func_Info()(map[int]string){
6868
info[3] = "Println"
6969
info[4] = "Stick"
7070
info[5] = "Exit"
71+
info[6] = "Free"
7172
return info
7273
}
7374

@@ -82,4 +83,15 @@ func Input(value map[int]string)(string){
8283
fmt.Scanln(&text)
8384
return text
8485
}
86+
87+
func Free(value map[int]string)(string){
88+
varName := value[0]
89+
Copy := vm.Mains
90+
File:= vm.So_Array_Stick(Copy.FuncName+varName,&Copy)
91+
vm.Del_Dir(File+"/")
92+
vm.Del_Dir(File)
93+
vm.Del_File(File)
94+
vm.Del_Files(File)
95+
return "<TRUE>"
96+
}
8597
//go build -buildmode=plugin -o system.so System.go

Ext/System/system.so

5.18 KB
Binary file not shown.

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import(
1515
"io/ioutil"
1616
"github.com/peterh/liner"
1717
)
18-
const Version = "4.6.0"
18+
const Version = "4.6.1 BETA 1"
1919
func RunCode(Code string,FilesStruct vm.FileValue)vm.FileValue{
2020
Opcode:=Compile(Code)
2121
if ini.DebugsIf(){

wsp

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)