main.cpp

changeset 161
c9fba92c4e35
parent 160
edcb03f3ef75
child 162
b7d65e89861a
--- a/main.cpp	Sat May 04 18:31:03 2013 +0300
+++ b/main.cpp	Sat May 04 19:14:16 2013 +0300
@@ -66,7 +66,6 @@
 // =============================================================================
 void logf (const char* fmtstr, ...) {
 	va_list va;
-	
 	va_start (va, fmtstr);
 	g_win->logVA (LOG_Normal, fmtstr, va);
 	va_end (va);
@@ -74,8 +73,44 @@
 
 void logf (LogType type, const char* fmtstr, ...) {
 	va_list va;
-	
 	va_start (va, fmtstr);
 	g_win->logVA (type, fmtstr, va);
 	va_end (va);
 }
+
+void warnf (const char* fmtstr, ...) {
+	va_list va;
+	va_start (va, fmtstr);
+	g_win->logVA (LOG_Warning, fmtstr, va);
+	va_end (va);
+}
+
+void succf (const char* fmtstr, ...) {
+	va_list va;
+	va_start (va, fmtstr);
+	g_win->logVA (LOG_Success, fmtstr, va);
+	va_end (va);
+}
+
+void errf (const char* fmtstr, ...) {
+	va_list va;
+	va_start (va, fmtstr);
+	g_win->logVA (LOG_Error, fmtstr, va);
+	va_end (va);
+}
+
+void infof (const char* fmtstr, ...) {
+	va_list va;
+	va_start (va, fmtstr);
+	g_win->logVA (LOG_Info, fmtstr, va);
+	va_end (va);
+}
+
+#ifndef RELEASE
+void devf (const char* fmtstr, ...) {
+	va_list va;
+	va_start (va, fmtstr);
+	g_win->logVA (LOG_Dev, fmtstr, va);
+	va_end (va);
+}
+#endif // RELEASE
\ No newline at end of file

mercurial