diff options
author | Xander <xander@biltopia.org> | 2023-07-28 00:57:36 +0200 |
---|---|---|
committer | Xander <xander@biltopia.org> | 2023-07-28 00:57:36 +0200 |
commit | 11539792ffcbdba74d6ca63dea2be937d62de7fc (patch) | |
tree | 06d1250dcb064a5192aad0de81d81dab83b025fc /lib/SATS/init.sats | |
parent | 018d1489e6fc0c6363442033abd674f287e6f5cd (diff) | |
download | ats-os-11539792ffcbdba74d6ca63dea2be937d62de7fc.tar.xz ats-os-11539792ffcbdba74d6ca63dea2be937d62de7fc.zip |
Added template init_exec function
Diffstat (limited to 'lib/SATS/init.sats')
-rw-r--r-- | lib/SATS/init.sats | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/SATS/init.sats b/lib/SATS/init.sats index c9d9d89..676657b 100644 --- a/lib/SATS/init.sats +++ b/lib/SATS/init.sats @@ -2,3 +2,7 @@ viewtypedef initializable (vt:viewt@ype) = [initialized: bool] @{ initialized = bool initialized, obj = opt (vt, initialized) } fun {vt:viewt@ype} uninitialized (v : opt(vt,false)): initializable vt + +fun {vt:viewt@ype} init_exec (x : &(initializable vt)):<!wrt> void +fun {vt:viewt@ype} init_exec$fwork (v : &vt):<!wrt> void + |