Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
composable_kernel
Commits
517ff41d
Commit
517ff41d
authored
Nov 18, 2022
by
Po-Yen, Chen
Browse files
Use macro to delay expansion
parent
1e7557a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
profiler/src/profiler_operation_registry.hpp
profiler/src/profiler_operation_registry.hpp
+5
-2
No files found.
profiler/src/profiler_operation_registry.hpp
View file @
517ff41d
...
@@ -68,6 +68,9 @@ class ProfilerOperationRegistry final
...
@@ -68,6 +68,9 @@ class ProfilerOperationRegistry final
}
}
};
};
#define REGISTER_PROFILER_OPERATION(name, description, operation) \
#define PP_CONCAT(x, y) PP_CONCAT_IMPL(x, y)
static const bool operation_registration_result_##__COUNTER__ = \
#define PP_CONCAT_IMPL(x, y) x##y
#define REGISTER_PROFILER_OPERATION(name, description, operation) \
static const bool PP_CONCAT(operation_registration_result_, __COUNTER__) = \
::ProfilerOperationRegistry::GetInstance().Add(name, description, operation)
::ProfilerOperationRegistry::GetInstance().Add(name, description, operation)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment