You could do [?CHILD(riak_core_dist_mon, worker) || DistMonEnabled] instead of making a macro....