x-engine-c v0.2.13
The C engine for x-lang
Loading...
Searching...
No Matches
err.h
Go to the documentation of this file.
1#ifndef X_TYPE_ERR_H
2#define X_TYPE_ERR_H
3
11/*
12 * ., .,
13 * {O,O}
14 * ( )
15 * " "
16 */
17/*
18 * # Includes
19 */
20#include "x-type.h"
21
22#ifndef X_TYPE_ERR_NAME
23#define X_TYPE_ERR_NAME "ERR"
24#endif /* X_TYPE_ERR_NAME */
25
26/*
27 * # Macros
28 */
30#define x_obj_type_iserr(B,X) x_obj_is_type((B), (X), X_TYPE_ERR_NAME)
31
41#define x_err_code(X) x_firstobj((X))
42
57#define x_err_subject(X) x_restobj((X))
58
59/*
60 * # Functions
61 */
64
67
68#endif /* X_TYPE_ERR_H */
x_obj_t * x_type_err_struct(x_obj_t *p_base, x_obj_t *p_obj)
Definition err.c:69
x_obj_t * x_type_err_register(x_obj_t *p_base, x_obj_t *p_args)
Definition err.c:90
static void x_obj_t * p_args
Definition x-prim.h:56
Definition x-obj.h:212
Type system field accessors and type struct definition.