aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-06-14 11:28:24 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-06-18 10:22:56 -0600
commit191000bb52e9fe9c10d43d1375d64b18f1413285 (patch)
tree5d410312f2a29f20a37a69c6b932be1015fd9db7
parent680509565b0152e62f1947485131f41139a09e86 (diff)
downloadusermoji-191000bb52e9fe9c10d43d1375d64b18f1413285.tar.xz
layers: Set helpers as static inline
static inline allows the code to be unused
-rw-r--r--layers/layer_logging.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/layers/layer_logging.h b/layers/layer_logging.h
index 812a650c..68155a63 100644
--- a/layers/layer_logging.h
+++ b/layers/layer_logging.h
@@ -47,7 +47,7 @@ template debug_report_data *get_my_data_ptr<debug_report_data>(
std::unordered_map<void *, debug_report_data *> &data_map);
// Utility function to handle reporting
-static void debug_report_log_msg(
+static inline void debug_report_log_msg(
debug_report_data *debug_data,
VkFlags msgFlags,
VkObjectType objectType,
@@ -162,7 +162,7 @@ static inline VkResult layer_create_msg_callback(
return VK_SUCCESS;
}
-static void layer_destroy_msg_callback(
+static inline void layer_destroy_msg_callback(
debug_report_data *debug_data,
VkDbgMsgCallback msg_callback)
{
@@ -190,7 +190,7 @@ static void layer_destroy_msg_callback(
}
}
-static void* debug_report_get_instance_proc_addr(
+static inline void* debug_report_get_instance_proc_addr(
debug_report_data *debug_data,
const char *funcName)
{
@@ -213,7 +213,7 @@ static void* debug_report_get_instance_proc_addr(
* Takes format and variable arg list so that output string
* is only computed if a message needs to be logged
*/
-static void log_msg(
+static inline void log_msg(
debug_report_data *debug_data,
VkFlags msgFlags,
VkObjectType objectType,