Thanks Kagamin! One more way, i think, mark function with UDA, and then analize UDA in template. But i have problem to implement this: i have function name __FUNCTION__ in template as sting, but __traits(getAttributes, __FUNCTION__) want symbol, not string as second parameter :(