CHKCALL,CHKLABELがcase insensitiveになった
This commit is contained in:
1 parent
f27d5b820e
commit
3e2cb7b8a7
1 file changed
+2
@@ -1441,10 +1441,12 @@ class BuiltinFunction
|
|||||||
}
|
}
|
||||||
static int CHKCALL(PetitComputer p, wstring func)
|
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;
|
return (func in p.vm.currentSlot.functions) != null || (func in otya.smilebasic.builtinfunctions.BuiltinFunction.builtinFunctions) != null;
|
||||||
}
|
}
|
||||||
static int CHKLABEL(PetitComputer p, wstring label)
|
static int CHKLABEL(PetitComputer p, wstring label)
|
||||||
{
|
{
|
||||||
|
label = label.toUpper;
|
||||||
return (label in p.vm.currentSlot.globalLabel) != null;
|
return (label in p.vm.currentSlot.globalLabel) != null;
|
||||||
}
|
}
|
||||||
static wstring INKEY(PetitComputer p)
|
static wstring INKEY(PetitComputer p)
|
||||||
|
|||||||
Reference in new issue
Block a user