sources/interface.h

branch
protocol5
changeset 84
3bd32eec3d57
parent 80
f992b027374b
parent 83
08bfc3d9d2ae
child 103
b78c0ca832a9
--- a/sources/interface.h	Sun May 17 22:07:48 2015 +0300
+++ b/sources/interface.h	Wed May 27 21:15:52 2015 +0300
@@ -58,23 +58,10 @@
 	RCONSession* get_session() { return &Session; }
 	void disconnected();
 
-	template<typename... argtypes>
-	void print (const String& fmtstr, const argtypes&... args)
-	{
-		print_to_console (format (fmtstr, args...));
-	}
-
-	template<typename... argtypes>
-	void print_warning (const String& fmtstr, const argtypes&... args)
-	{
-		print_to_console (TEXTCOLOR_BrightYellow "-!- " + format (fmtstr, args...) + TEXTCOLOR_Reset);
-	}
-
-	template<typename... argtypes>
-	void print_error (const String& fmtstr, const argtypes&... args)
-	{
-		print_to_console (TEXTCOLOR_BrightRed "!!! " + format (fmtstr, args...) + TEXTCOLOR_Reset);
-	}
+	void vprint (const char* fmtstr, va_list args);
+	void __cdecl print (const char* fmtstr, ...);
+	void __cdecl print_warning (const char* fmtstr, ...);
+	void __cdecl print_error (const char* fmtstr, ...);
 
 private:
 	StringList InputHistory;

mercurial