1
0

Implement PRGDEL

This commit is contained in:
otya128
2016-12-28 16:09:06 +09:00
parent 50470d60fa
commit e7237190bf
2 changed files with 69 additions and 0 deletions

View File

@@ -3182,6 +3182,18 @@ class BuiltinFunction
{
p.program.insert(line, cast(bool)isBack);
}
static void PRGDEL(PetitComputer p)
{
PRGDEL(p, 1);
}
static void PRGDEL(PetitComputer p, int count)
{
if (count == 0)
{
throw new OutOfRange("PRGDEL", 1);
}
p.program.delete_(count);
}
//alias void function(PetitComputer, Value[], Value[]) BuiltinFunc;
static BuiltinFunctions[wstring] builtinFunctions;
static wstring getBasicName(BFD)(const wstring def)