CHKCALL,CHKLABELがcase insensitiveになった
This commit is contained in:
@@ -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