Skip to content
Snippets Groups Projects
Commit 60e00418 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent 0d17c518
No related branches found
No related tags found
No related merge requests found
// $Id: Main.cpp,v 1.10 2001-01-13 15:41:35 geuzaine Exp $ // $Id: Main.cpp,v 1.11 2001-01-13 15:48:31 geuzaine Exp $
#include <signal.h> #include <signal.h>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "OpenFile.h" #include "OpenFile.h"
#include "GetOptions.h" #include "GetOptions.h"
GUI *WID ; GUI *WID = NULL;
int main(int argc, char *argv[]){ int main(int argc, char *argv[]){
int i, nbf; int i, nbf;
......
// $Id: Message.cpp,v 1.9 2001-01-13 15:41:35 geuzaine Exp $ // $Id: Message.cpp,v 1.10 2001-01-13 15:48:31 geuzaine Exp $
#include <signal.h> #include <signal.h>
#ifndef WIN32 #ifndef WIN32
...@@ -94,7 +94,7 @@ void Msg(int level, char *fmt, ...){ ...@@ -94,7 +94,7 @@ void Msg(int level, char *fmt, ...){
static char buff1[1024], buff2[1024], buff[4][1024]; static char buff1[1024], buff2[1024], buff[4][1024];
if(CTX.interactive) if(CTX.interactive || !WID)
window = -1; window = -1;
else else
WID->check(); WID->check();
...@@ -113,7 +113,7 @@ void Msg(int level, char *fmt, ...){ ...@@ -113,7 +113,7 @@ void Msg(int level, char *fmt, ...){
vsprintf(buff2, fmt, args); vsprintf(buff2, fmt, args);
strcat(buff1,buff2); strcat(buff1,buff2);
fprintf(stderr, "%s\n", &buff1[3]); fprintf(stderr, "%s\n", &buff1[3]);
if(!CTX.interactive){ if(WID && !CTX.interactive){
if(verb<2) if(verb<2)
WID->add_message(buff1); WID->add_message(buff1);
else else
...@@ -124,7 +124,7 @@ void Msg(int level, char *fmt, ...){ ...@@ -124,7 +124,7 @@ void Msg(int level, char *fmt, ...){
va_end (args); va_end (args);
} }
if(abort){ if(WID && abort){
WID->save_message(".gmshlog"); WID->save_message(".gmshlog");
Exit(1); Exit(1);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment