(function)
return _OnlyAmd64
Decorates function to work only when pwndbg.arch.current == \"x86-64\".
Decorates function to work only when pwndbg.arch.current == \"x86-64\".
Decorates function to work only when pwndbg . arch . current == \ x86 - 64 \ .
def OnlyAmd64(function):
    """Decorates function to work only when pwndbg.arch.current == \"x86-64\".
    """
    @functools.wraps(function)
    def _OnlyAmd64(*a, **kw):
        if pwndbg.arch.current == "x86-64":
            return function(*a, **kw)
        else:
            print("%s: Only works with \"x86-64\" arch." % function.__name__)
    return _OnlyAmd64
def OnlyAmd64 ( function ) : @ functools . wraps ( function ) def _OnlyAmd64 ( * a , * * kw ) : if pwndbg . arch . current == "x86-64" : return function ( * a , * * kw ) else : print ( "%s: Only works with \"x86-64\" arch." % function . __name__ ) return _OnlyAmd64