mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-27 00:31:02 +08:00
(profiler_core) Fixed logic mistake in base api
This commit is contained in:
parent
61c40c2512
commit
eaa79a4c4c
@ -38,13 +38,13 @@ along with this program.If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
namespace profiler {
|
||||
template <bool IS_REF> struct NameSwitch final {
|
||||
static const char* runtime_name(const char*) { return ""; }
|
||||
static const char* compiletime_name(const char* name) { return name; }
|
||||
static const char* runtime_name(const char* name) { return name; }
|
||||
static const char* compiletime_name(const char*) { return ""; }
|
||||
};
|
||||
|
||||
template <> struct NameSwitch<true> final {
|
||||
static const char* runtime_name(const char* name) { return name; }
|
||||
static const char* compiletime_name(const char*) { return ""; }
|
||||
static const char* runtime_name(const char*) { return ""; }
|
||||
static const char* compiletime_name(const char* name) { return name; }
|
||||
};
|
||||
} // END of namespace profiler.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user