.
This commit is contained in:
parent
d17c8ea847
commit
17e458b4e7
1 changed files with 4 additions and 0 deletions
|
|
@ -36,6 +36,10 @@ typedef uintptr_t uintptr;
|
||||||
typedef size_t usize;
|
typedef size_t usize;
|
||||||
typedef ptrdiff_t ssize;
|
typedef ptrdiff_t ssize;
|
||||||
|
|
||||||
|
typedef int64_t sint;
|
||||||
|
typedef uint64_t uint;
|
||||||
|
|
||||||
|
|
||||||
// Thanks AZMR
|
// Thanks AZMR
|
||||||
#define cast(to_type, expr) ((to_type)(expr))
|
#define cast(to_type, expr) ((to_type)(expr))
|
||||||
#define chkcast(to_type, from_type, expr) _Generic(expr, from_type: (to_type)(expr))
|
#define chkcast(to_type, from_type, expr) _Generic(expr, from_type: (to_type)(expr))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue