コード例 #1
0
ファイル: compat_interface.py プロジェクト: foolyu/fileFuzz
def Terminate(params, ctxt, scope, stream, coord):
    raise errors.InterpExit()
コード例 #2
0
ファイル: compat_interface.py プロジェクト: foolyu/fileFuzz
def Exit(params, ctxt, scope, stream, coord):
    if len(params) != 1:
        raise errors.InvalidArguments(coord, "1 arguments", "{} args".format(len(params)))
    error_code = PYVAL(params[0])
    raise errors.InterpExit(error_code)