[GRASS-dev] libgis: G_FATAL_EXIT|PRINT|RETURN

Markus Metz markus.metz.giswork at gmail.com
Sat Apr 6 14:00:04 PDT 2013


On Sat, Apr 6, 2013 at 6:27 PM, Martin Landa <landa.martin at gmail.com> wrote:
> Hi,
>
> libgis defines
>
> /* error codes */
> #define G_FATAL_EXIT    0
> #define G_FATAL_PRINT   1
> #define G_FATAL_RETURN  2
>
> These defines are used by a few functions, eg.
> G_check_input_output_name(). Other candidates could eg.
> Vect_open_old() and similar functions (eg. call G__error() when vector
> map is not found). I would suggest to add G__error() and
> G__set_error_code() just for internal use (see the attached path).

What's your motivation for adding G__error() and G__set_error_code()?
Are there problems with e.g. Vect_open_old()?

Markus M

>
> What do you think? Martin
>
> --
> Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list