diff --git a/artiq/language/core.py b/artiq/language/core.py index b4934dc3e..0cd28a8ff 100644 --- a/artiq/language/core.py +++ b/artiq/language/core.py @@ -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)