Revision 1122

trunk/contrib/gdbprintlib/gdbprintlib.cpp (revision 1122)
1
// $Id$
2

  
3
/**  \file gdbprintlib.cpp
4
  Source code for functions for printing ADMB objects during GDB sessions.
5

  
6
  This functioniality was added to allow easy
7
  viewing of ADMB variables of all types during a GDB debugging session, but
8
  the functions can be used in code.
9
  To use the functions in a GDB session, ADMB must have been built from source
10
  in debug mode, typically using the command 'make debug'. Also, the model
11
  TPL must have been compiled using the debug flag, typically using the command
12
  'admb -g '.
13
 
14
  @author Chris Grandin, Dave Fournier
15
  @date 6/18/2013
16
  \ingroup GDBPRINTLIB
17
*/
18

  
1 19
#include "gdbprintlib.h"
2 20

  
3 21
/**
4 22
* Do nothing, this will be included by ADMB lexical analyzer
5 23
* so that the library is usable from within GDB
6 24
* @return Nothing
25
  \ingroup GDBPRINTLIB
7 26
**/
8 27
void pad()
9 28
{
......
13 32
* Print a double precision number to the screen
14 33
* @param v The double to print
15 34
* @return Nothing
35
  \ingroup GDBPRINTLIB
16 36
**/
17 37
void pad(double v)
18 38
{
......
23 43
* Print an adstring to the screen
24 44
* @param v The adstring to print
25 45
* @return Nothing
46
  \ingroup GDBPRINTLIB
26 47
**/
27 48
void pad(const adstring & v)
28 49
{
29 50

  
trunk/contrib/gdbprintlib/gdbprintlib.h (revision 1122)
1
/**
2
* @file gdbprint.h
3
* @brief Contains function prototypes for printing ADMB objects during GDB sessions
4
* \ingroup GDBPRINTLIB
5
* This file contains function prototypes for printing out the various ADMB
6
* variable types to the screen. This functioniality was added to allow easy
7
* viewing of ADMB variables of all types during a GDB debugging session, but
8
* the functions can be used in code.
9
* To use the functions in a GDB session, ADMB must have been built from source
10
* in debug mode, typically using the command 'make debug'. Also, the model
11
* TPL must have been compiled using the debug flag, typically using the command
12
* 'admb -g '.
13
*
1
// $Id$
2
/** \file gdbprintlib.h
3
  Function prototypes for printing ADMB objects during GDB sessions.
4

  
14 5
* @author Chris Grandin, Dave Fournier
15 6
* @date 6/18/2013
16 7
**/
17 8

  

Also available in: Unified diff