From 191000bb52e9fe9c10d43d1375d64b18f1413285 Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Sun, 14 Jun 2015 11:28:24 -0600 Subject: layers: Set helpers as static inline static inline allows the code to be unused --- layers/layer_logging.h | 8 ++++---- 1 file 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( std::unordered_map &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, -- cgit v1.2.3