Changeset 791


Ignore:
Timestamp:
1999-11-26T10:53:09+13:00 (24 years ago)
Author:
sjboddie
Message:

fixed bug in logout

Location:
trunk/gsdl/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/display.cpp

    r628 r791  
    2828/*
    2929   $Log$
     30   Revision 1.16  1999/11/25 21:53:08  sjboddie
     31   fixed bug in logout
     32
    3033   Revision 1.15  1999/09/24 02:25:35  rjmcnab
    3134   removed limitation on the number of arguments that a macro can have
     
    12131216}
    12141217
     1218ostream *displayclass::setlogout (ostream *thelogout) {
     1219
     1220  ostream *oldlogout = logout;
     1221  logout = thelogout;
     1222  return oldlogout;
     1223}
    12151224
    12161225// protected methods for display
  • trunk/gsdl/lib/display.h

    r534 r791  
    213213
    214214  // say where any error logging goes, this can be NULL
    215   // if no error logging is desired
    216   void setlogout (ostream *thelogout) {logout = thelogout;}
     215  // if no error logging is desired - returns previous value
     216  ostream *setlogout (ostream *thelogout);
    217217
    218218  // debug stuff
Note: See TracChangeset for help on using the changeset viewer.