mirror of
https://github.com/m-labs/artiq.git
synced 2025-02-07 16:15:22 +08:00
language: fix syscall arg handling
This commit is contained in:
parent
a3c5cdeb86
commit
35f331f82c
@ -118,7 +118,7 @@ def syscall(arg=None, flags={}):
|
||||
def inner_decorator(function):
|
||||
function.artiq_embedded = \
|
||||
_ARTIQEmbeddedInfo(core_name=None, portable=False, function=None,
|
||||
syscall=function.__name__, forbidden=False,
|
||||
syscall=arg, forbidden=False,
|
||||
flags=set(flags))
|
||||
return function
|
||||
return inner_decorator
|
||||
|
Loading…
Reference in New Issue
Block a user