GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
GIS Library - Debug functions. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
void | G_init_debug (void) |
Initiate debugging. More... | |
int | G_debug (int level, const char *msg,...) |
Print debugging message. More... | |
GIS Library - Debug functions.
(C) 2001-2012 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file debug.c.
int G_debug | ( | int | level, |
const char * | msg, | ||
... | |||
) |
Print debugging message.
Print debugging message if environment variable GRASS_DEBUG_LEVEL is set to level equal or greater
Levels: (recommended levels)
[in] | level | level |
[in] | msg | message |
Definition at line 65 of file debug.c.
References G_init_debug().
void G_init_debug | ( | void | ) |
Initiate debugging.
Definition at line 27 of file debug.c.
References G_is_initialized().
Referenced by G_debug(), and G_init_all().