Implement PRGSIZE

This commit is contained in:
otya128 committed 2016-12-28 16:20:50 +09:00
1 parent bffa0fe6ee
commit 5505d7c9f0
2 files changed
+39 -1

No files matched your search

+13
View File
@@ -3198,6 +3198,19 @@ class BuiltinFunction
}
p.program.delete_(count);
}
static int PRGSIZE(PetitComputer p)
{
return PRGSIZE(p, p.vm.currentSlotNumber, 0);
}
static int PRGSIZE(PetitComputer p, int slot)
{
return PRGSIZE(p, slot, 0);
}
static int PRGSIZE(PetitComputer p, int slot, int type)
{
import otya.smilebasic.program;
return p.program.size(slot, cast(SizeType)type);
}
//alias void function(PetitComputer, Value[], Value[]) BuiltinFunc;
static BuiltinFunctions[wstring] builtinFunctions;
static wstring getBasicName(BFD)(const wstring def)