1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include "learning-parts.hpp" using namespace habitstarts; using namespace intellect::level1; static int __init = ([]()->int{ ahabit(happened-habit, { ref ev = ctx.get(happens); // TODO: perform each associated event }); ahabit(whenever-habit, { }); return 0; })();