aboutsummaryrefslogtreecommitdiff
path: root/lib/SATS/init.sats
diff options
context:
space:
mode:
authorXander <xander@biltopia.org>2023-07-28 00:57:36 +0200
committerXander <xander@biltopia.org>2023-07-28 00:57:36 +0200
commit11539792ffcbdba74d6ca63dea2be937d62de7fc (patch)
tree06d1250dcb064a5192aad0de81d81dab83b025fc /lib/SATS/init.sats
parent018d1489e6fc0c6363442033abd674f287e6f5cd (diff)
downloadats-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.sats4
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
+