0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd:Ⓜ️:vm: Give eval the instance_list.

This commit is contained in:
Jason Volk 2018-05-06 17:07:18 -07:00
parent 671053de74
commit 820284f2d0
2 changed files with 11 additions and 0 deletions

View file

@ -50,6 +50,7 @@ struct ircd::m::vm::init
/// transitions or actions of the machine etc. /// transitions or actions of the machine etc.
/// ///
struct ircd::m::vm::eval struct ircd::m::vm::eval
:instance_list<eval>
{ {
const vm::opts *opts {&default_opts}; const vm::opts *opts {&default_opts};
const vm::copts *copts {nullptr}; const vm::copts *copts {nullptr};

View file

@ -100,6 +100,16 @@ ircd::m::vm::notify_hook
{ "name", "vm.notify" } { "name", "vm.notify" }
}; };
/// Instance list linkage for all of the evaluations.
template<>
decltype(ircd::util::instance_list<ircd::m::vm::eval>::list)
ircd::util::instance_list<ircd::m::vm::eval>::list
{};
//
// eval::eval
//
ircd::m::vm::eval::eval(const room &room, ircd::m::vm::eval::eval(const room &room,
json::iov &event, json::iov &event,
const json::iov &content) const json::iov &content)