mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-23 11:28:45 +08:00
add unix.fork&unix.pipe(do not work on windows platform)
This commit is contained in:
+23
-2
@@ -1,7 +1,28 @@
|
||||
import("lib.nas");
|
||||
|
||||
var geodinfo=func(lat,lon){}
|
||||
var maketimer=func(t,f){}
|
||||
var geodinfo=func(lat,lon){
|
||||
return {};
|
||||
}
|
||||
var maketimer=func(interval,function){
|
||||
return {
|
||||
isRunning:0,
|
||||
start:func(){
|
||||
me.isRunning=1;
|
||||
while(1){
|
||||
unix.sleep(interval);
|
||||
function();
|
||||
}
|
||||
},
|
||||
stop:func(){
|
||||
me.isRunning=0;
|
||||
},
|
||||
restart:func(interval){
|
||||
|
||||
},
|
||||
singleShot:0,
|
||||
simulatedTime:0
|
||||
};
|
||||
}
|
||||
|
||||
var props=
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user