2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

language: fix syscall arg handling

This commit is contained in:
Sebastien Bourdeauducq 2018-11-30 17:59:24 +08:00
parent 57caa7b149
commit 156afb48ee

View File

@ -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