diff options
Diffstat (limited to 'starts/meaning-vm/level-2/habits.cpp')
-rw-r--r-- | starts/meaning-vm/level-2/habits.cpp | 15 |
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); + +} +} |