lib: move errno and strerror to legacy FFI
[nit.git] / lib / standard / kernel_nit.h
1 #ifndef __KERNEL_NIT_H
2 #define __KERNEL_NIT_H
3 /* This file is part of NIT ( http://www.nitlanguage.org ).
4 *
5 * This file is free software, which comes along with NIT. This software is
6 * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
7 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
8 * PARTICULAR PURPOSE. You can modify it is you want, provided this header
9 * is kept unaltered, and a notification of the changes is added.
10 * You are allowed to redistribute it and sell it, alone or is a part of
11 * another product.
12 */
13
14 #include <stdlib.h>
15 #include <errno.h>
16
17 #define address_is_null(x) ((x)==NULL)
18 #define sys_errno(x) (errno)
19
20 #endif