summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level-2/habits.cpp
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2019-12-26 08:26:40 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2019-12-26 08:26:40 -0800
commitdc2779f5a7ceb226620f39e728b73b028cb17c10 (patch)
tree5053af30bb6e49a9c17291626a5cb375df260bcf /starts/meaning-vm/level-2/habits.cpp
parentff4aecf759ce565b77575ad8eabcf60c94ee6a29 (diff)
downloadstandingwithresilience-dc2779f5a7ceb226620f39e728b73b028cb17c10.tar.gz
standingwithresilience-dc2779f5a7ceb226620f39e728b73b028cb17c10.zip
start closing habit starts in level2
Diffstat (limited to 'starts/meaning-vm/level-2/habits.cpp')
-rw-r--r--starts/meaning-vm/level-2/habits.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/starts/meaning-vm/level-2/habits.cpp b/starts/meaning-vm/level-2/habits.cpp
index 13589cc..dfb9014 100644
--- a/starts/meaning-vm/level-2/habits.cpp
+++ b/starts/meaning-vm/level-2/habits.cpp
@@ -2,7 +2,9 @@
#include "../level-1/sugar.hpp"
#include "sugar.hpp"
-using namespace intellect::level2;
+namespace intellect {
+namespace level2 {
+
int createhabits()
{
decls(link, source, type, target);
@@ -375,3 +377,14 @@ int createhabits()
});
return 0;
}
+
+void ensurehabitscreated()
+{
+ static int sentinel = createhabits();
+ (void)(sentinel);
+}
+
+static int sentinel = (ensurehabitscreated(), 1);
+
+}
+}