diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-09 03:26:04 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-09 03:26:04 -0800 |
commit | 8ceeb5f83f22ed3db06fc02bb23710ccc1dbbb90 (patch) | |
tree | 8defe85cd6af09cbe258ace239eb490a0b98651c /starts/meaning-vm/level-2/sugar.hpp | |
parent | 584ca7f9b6fca6da54608d3b28274273b2c9a4b8 (diff) | |
download | standingwithresilience-8ceeb5f83f22ed3db06fc02bb23710ccc1dbbb90.tar.gz standingwithresilience-8ceeb5f83f22ed3db06fc02bb23710ccc1dbbb90.zip |
use tls contexts for habits
Diffstat (limited to 'starts/meaning-vm/level-2/sugar.hpp')
-rw-r--r-- | starts/meaning-vm/level-2/sugar.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/starts/meaning-vm/level-2/sugar.hpp b/starts/meaning-vm/level-2/sugar.hpp index 3e94c97..6734eae 100644 --- a/starts/meaning-vm/level-2/sugar.hpp +++ b/starts/meaning-vm/level-2/sugar.hpp @@ -11,12 +11,12 @@ #undef self #define ahabit(name, ...) \ a(habit, name); \ - (name).fun((std::function<ref(ref)>) \ - [=](ref ctx) -> ref\ + (name).fun((std::function<void()>) \ + [=]() -> ref\ { \ habitdelay; \ - ref self = name; \ - (void)self; \ + ref self = name; (void)self; \ + ref ctx = intellect::level2::ref::context(); (void) ctx;\ __VA_ARGS__ \ return intellect::level1::concepts::nothing; \ }); |