isFeature

* Params: * M = the module

@safe
template isFeature () if (
__traits(isModule, M)
) {
@safe
enum feature_found;
@safe
static if(feature_found)
enum obtainFeature;
@safe
static if(feature_found)
enum isFeature;
@safe
static if(!(feature_found))
enum isFeature;
}

Return Value

true if M is a feature module

Examples

import tagion.behaviour.BehaviourUnittest;

static assert(isFeature!(tagion.behaviour.BehaviourUnittest));
static assert(!isFeature!(tagion.behaviour.BehaviourFeature));