summaryrefslogtreecommitdiff
path: root/plugins/modernb/modern_log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/modernb/modern_log.cpp')
-rw-r--r--plugins/modernb/modern_log.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/plugins/modernb/modern_log.cpp b/plugins/modernb/modern_log.cpp
deleted file mode 100644
index 2f44f59d8e..0000000000
--- a/plugins/modernb/modern_log.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-#include "hdr/modern_commonheaders.h"
-
-#include <stdarg.h>
-#include <stdio.h>
-#include <string.h>
-
-
-void Log(const char *file,int line,const char *fmt,...)
-{
-
-
- va_list vararg;
- const char *file_tmp;
- char str[1024];
- char buf[1024];
-
- file_tmp = strrchr(file, '\\');
- if (file_tmp == NULL)
- file_tmp = file;
- else
- file_tmp++;
-
- va_start(vararg,fmt);
- mir_vsnprintf(str,SIZEOF(str),fmt,vararg);
- va_end(vararg);
- {
- char * tmp=str;
- while(*tmp!='\0')
- {
- if (*tmp=='\n') *tmp=' ';
- tmp++;
- }
- }
- mir_snprintf(buf,SIZEOF(buf),"clist_modern:[%u - %u]: %s \t\t(%s Ln %d)\n",GetCurrentThreadId(),GetTickCount(),str,file_tmp,line);
-#ifdef _FILELOG_
- {
- FILE *fp;
- fp=fopen(_FILELOG_,"at");
- fprintf(fp,buf);
- fclose(fp);
- }
-#else
- OutputDebugStringA(buf);
-#endif
-}
-