Panda3D
direct
src
dcparser
dcindent.h
1
// Filename: dcindent.h
2
// Created by: drose (16Jan99)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef DCINDENT_H
16
#define DCINDENT_H
17
18
#include "dcbase.h"
19
20
#ifdef WITHIN_PANDA
21
// If we're compiling this within Panda, we use the function defined
22
// there.
23
#include "indent.h"
24
25
#else
26
// Otherwise, we must define it for ourselves.
27
28
////////////////////////////////////////////////////////////////////
29
// Function: indent
30
// Description: A handy function for doing text formatting. This
31
// function simply outputs the indicated number of
32
// spaces to the given output stream, returning the
33
// stream itself. Useful for indenting a series of
34
// lines of text by a given amount.
35
////////////////////////////////////////////////////////////////////
36
ostream &
37
indent(ostream &out,
int
indent_level);
38
39
#endif // WITHIN_PANDA
40
41
#endif // DCINDENT_H
Generated on Wed May 17 2017 23:38:50 for Panda3D by
1.8.13