forked from M-Labs/artiq
language: add virtual
This commit is contained in:
parent
1bdf301e2a
commit
2059fd375e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user