Panda3D
|
00001 // Filename: dcindent.h 00002 // Created by: drose (16Jan99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef DCINDENT_H 00016 #define DCINDENT_H 00017 00018 #include "dcbase.h" 00019 00020 #ifdef WITHIN_PANDA 00021 // If we're compiling this within Panda, we use the function defined 00022 // there. 00023 #include "indent.h" 00024 00025 #else 00026 // Otherwise, we must define it for ourselves. 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Function: indent 00030 // Description: A handy function for doing text formatting. This 00031 // function simply outputs the indicated number of 00032 // spaces to the given output stream, returning the 00033 // stream itself. Useful for indenting a series of 00034 // lines of text by a given amount. 00035 //////////////////////////////////////////////////////////////////// 00036 ostream & 00037 indent(ostream &out, int indent_level); 00038 00039 #endif // WITHIN_PANDA 00040 00041 #endif // DCINDENT_H