v0.1.0
Fast, portable C library for geometry input/output
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
error.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** gmio
3 ** Copyright Fougue (24 Jun. 2016)
4 ** contact@fougue.pro
5 **
6 ** This software is a reusable library whose purpose is to provide complete
7 ** I/O support for various CAD file formats (eg. STL)
8 **
9 ** This software is governed by the CeCILL-B license under French law and
10 ** abiding by the rules of distribution of free software. You can use,
11 ** modify and/ or redistribute the software under the terms of the CeCILL-B
12 ** license as circulated by CEA, CNRS and INRIA at the following URL
13 ** "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html".
14 ****************************************************************************/
15 
23 #ifndef GMIO_ERROR_H
24 #define GMIO_ERROR_H
25 
26 #include "global.h"
27 
30 {
33 
36 
39 
42 
46 
52 
55 };
56 
58 GMIO_INLINE bool gmio_no_error(int code)
59 { return code == GMIO_ERROR_OK ? true : false; }
60 
62 GMIO_INLINE bool gmio_error(int code)
63 { return code != GMIO_ERROR_OK ? true : false; }
64 
65 #endif /* GMIO_ERROR_H */
66 
gmio_error
This enum defines common errors.
Definition: error.h:29
Transfer was stopped by user, that is to say gmio_transfer::func_is_stop_requested() returned true...
Definition: error.h:45
An error occured after a call to a function.
Definition: error.h:51
No error occurred, success.
Definition: error.h:32
#define GMIO_INLINE
Expands to the C compiler specific inline keyword (if any)
Definition: global.h:156
Unknown error.
Definition: error.h:54
Fundamental global declarations, included by almost all other header/source files.
Pointer on argument memory block is NULL.
Definition: error.h:35
Argument size for the memory block is too small.
Definition: error.h:38
An error occurred with gmio_stream.
Definition: error.h:41
bool gmio_no_error(int code)
Returns true if code == GMIO_NO_ERROR
Definition: error.h:58
Fougue © 2016