summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level-2/funcs.hpp
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2019-12-09 06:51:41 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2019-12-09 06:51:41 -0800
commite6f2b95fb543b535b1914bd4954e240dbd724275 (patch)
treedcd081c1098489bc5c2172e5e535abb56094e763 /starts/meaning-vm/level-2/funcs.hpp
parent8ceeb5f83f22ed3db06fc02bb23710ccc1dbbb90 (diff)
downloadstandingwithresilience-e6f2b95fb543b535b1914bd4954e240dbd724275.tar.gz
standingwithresilience-e6f2b95fb543b535b1914bd4954e240dbd724275.zip
positional argument sugar for habits
Diffstat (limited to 'starts/meaning-vm/level-2/funcs.hpp')
-rw-r--r--starts/meaning-vm/level-2/funcs.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/starts/meaning-vm/level-2/funcs.hpp b/starts/meaning-vm/level-2/funcs.hpp
index 52c041d..770ff0a 100644
--- a/starts/meaning-vm/level-2/funcs.hpp
+++ b/starts/meaning-vm/level-2/funcs.hpp
@@ -2,10 +2,15 @@
#include "common.hpp"
+#include <functional>
+#include <initializer_list>
+
namespace intellect {
namespace level2 {
ref context();
+ref makehabit(ref name, std::initializer_list<ref> argnames, std::function<void()> code);
+ref dohabit(ref habit, std::initializer_list<ref> args);
}
}