language: add virtual

This commit is contained in:
Sebastien Bourdeauducq 2021-12-04 19:03:39 +08:00
parent 1bdf301e2a
commit 2059fd375e
1 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,7 @@ from artiq.language import import_cache
__all__ = [
"KernelInvariant", "round64",
"KernelInvariant", "virtual", "round64",
"extern", "kernel", "portable", "nac3", "rpc",
"parallel", "sequential",
"set_watchdog_factory", "watchdog", "TerminationRequested"
@ -19,9 +19,13 @@ __all__ = [
T = TypeVar('T')
class KernelInvariant(Generic[T]):
pass
class virtual(Generic[T]):
pass
def round64(x):
return round(x)