From 42ae4790815734dca6357d3b69f2aca604316aa3 Mon Sep 17 00:00:00 2001 From: Daniel Vassdal Date: Sat, 18 May 2013 11:31:25 -0700 Subject: Added macro to allow simpler logic in functions with the need to vsnprintf --- include/inspircd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/inspircd.h') diff --git a/include/inspircd.h b/include/inspircd.h index 9a9583499..de574b6f4 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -543,7 +543,8 @@ class CoreExport InspIRCd * @param ... * @return The formatted string */ - static const char* Format(const char* formatString, ...); + static const char* Format(const char* formatString, ...) CUSTOM_PRINTF(1, 2); + static const char* Format(const va_list &vaList, const char* formatString) CUSTOM_PRINTF(2, 0); static void QuickExit(int status); -- cgit v1.2.3