Img2Num C
API Documentation
img2num_error_t.h
Go to the documentation of this file.
1
#ifndef CIMG2NUM_ERROR_T_H
2
#define CIMG2NUM_ERROR_T_H
3
4
#ifdef __cplusplus
5
extern
"C"
{
6
#endif
7
8
// Matches the `core` library's error codes
9
typedef
enum
{
10
IMG2NUM_OK
= 0,
11
IMG2NUM_ERROR_BAD_ALLOC
= 1,
12
IMG2NUM_ERROR_INVALID_ARGUMENT
= 2,
13
IMG2NUM_ERROR_RUNTIME
= 3,
14
IMG2NUM_ERROR_UNKNOWN
= 4
15
}
img2num_error_t
;
16
17
img2num_error_t
img2num_get_last_error
();
18
const
char
*
img2num_get_last_error_message
();
19
void
img2num_clear_last_error
();
20
21
#ifdef __cplusplus
22
}
23
#endif
24
25
#endif
// IMG2NUM_ERROR_T_H
img2num_get_last_error
img2num_error_t img2num_get_last_error()
Definition:
img2num_error_t.cpp:23
img2num_error_t
img2num_error_t
Definition:
img2num_error_t.h:9
IMG2NUM_ERROR_RUNTIME
@ IMG2NUM_ERROR_RUNTIME
Definition:
img2num_error_t.h:13
IMG2NUM_ERROR_BAD_ALLOC
@ IMG2NUM_ERROR_BAD_ALLOC
Definition:
img2num_error_t.h:11
IMG2NUM_OK
@ IMG2NUM_OK
Definition:
img2num_error_t.h:10
IMG2NUM_ERROR_INVALID_ARGUMENT
@ IMG2NUM_ERROR_INVALID_ARGUMENT
Definition:
img2num_error_t.h:12
IMG2NUM_ERROR_UNKNOWN
@ IMG2NUM_ERROR_UNKNOWN
Definition:
img2num_error_t.h:14
img2num_clear_last_error
void img2num_clear_last_error()
Definition:
img2num_error_t.cpp:34
img2num_get_last_error_message
const char * img2num_get_last_error_message()
Definition:
img2num_error_t.cpp:28
include
cimg2num
img2num_error_t.h
Generated by
1.9.1