debug testing

This commit is contained in:
jane 2020-11-10 19:16:32 -05:00
parent 12e7dda646
commit c0beac0132
1 changed files with 2 additions and 1 deletions

View File

@ -71,14 +71,15 @@ def jez(target, arg, index):
def _apply(index, target, arg, func):
if type(arg) is int:
print("{} {} {}".format(func, target, arg))
return func(target, arg, index)
elif type(arg) is str and arg in this.values:
print("{} {} {}".format(func, target, this.values[arg]))
return func(target, this.values[arg], index)
def apply(index, targets, args, func):
for target in range(len(targets)):
print("{} {} {}".format(func, targets[target]['channel'], args[target]))
if this.values[targets[target]['channel']] != None:
if target < len(args):
val, jump = _apply(