Fix doc macro: declare before use, and correctly so (return type) (ROOT-6448).