Exemplo n.º 1
0
def on_clear_loop_warps(sim: OTBNSim, args: List[str]) -> Optional[OTBNSim]:
    '''Run until ecall or error'''
    check_arg_count('clear_loop_warps', 0, args)

    sim.loop_warps = {}

    return None
Exemplo n.º 2
0
def on_clear_loop_warps(sim: OTBNSim, args: List[str]) -> Optional[OTBNSim]:
    '''Run until ecall or error'''
    if len(args):
        raise ValueError(
            'clear_loop_warps expects zero arguments. Got {}.'.format(args))

    sim.loop_warps = {}

    return None