1
0

CHKCALL,CHKLABELがcase insensitiveになった

This commit is contained in:
otya128
2016-09-02 16:26:27 +09:00
parent f27d5b820e
commit 3e2cb7b8a7

View File

@@ -1441,10 +1441,12 @@ class BuiltinFunction
}
static int CHKCALL(PetitComputer p, wstring func)
{
func = func.toUpper;
return (func in p.vm.currentSlot.functions) != null || (func in otya.smilebasic.builtinfunctions.BuiltinFunction.builtinFunctions) != null;
}
static int CHKLABEL(PetitComputer p, wstring label)
{
label = label.toUpper;
return (label in p.vm.currentSlot.globalLabel) != null;
}
static wstring INKEY(PetitComputer p)