sources/interface.h

changeset 83
08bfc3d9d2ae
parent 73
07dda51a7a8e
child 84
3bd32eec3d57
child 88
08ccaf26cffd
--- a/sources/interface.h	Tue May 26 18:19:27 2015 +0300
+++ b/sources/interface.h	Tue May 26 18:46:24 2015 +0300
@@ -57,23 +57,10 @@
 	void tab_complete (const String& part, String complete);
 	RCONSession* get_session() { return &Session; }
 
-	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