summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
authorDaniel Vassdal <shutter@canternet.org>2013-05-18 11:31:25 -0700
committerDaniel Vassdal <shutter@canternet.org>2013-05-18 14:01:21 -0700
commit42ae4790815734dca6357d3b69f2aca604316aa3 (patch)
tree3e95c0c32a43ce6756269888fc02f2df7307bba0 /include/inspircd.h
parent3ce33ee0e6bc0b8fbe2a564a37e02d2e56510b06 (diff)
Added macro to allow simpler logic in functions with the need to vsnprintf
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h3
1 files changed, 2 insertions, 1 deletions
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);