control whether to emit function templates or not