#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
|
| typedef uint32_t | u32 |
| |
| typedef uint64_t | u64 |
| |
| typedef int32_t | i32 |
| |
| typedef uint16_t | u16 |
| |
| typedef unsigned char | byte |
| |
| typedef char | i8 |
| |
| typedef size_t | sz |
| |
◆ ASSERT
| #define ASSERT |
( |
|
expr, |
|
|
|
msg, |
|
|
|
... |
|
) |
| |
Value: do { \
if (!(expr)) \
PANIC("not ok!\tAssertion Failed! " msg, __VA_ARGS__); \
} while (0)
◆ ASSERT_
| #define ASSERT_ |
( |
|
expr, |
|
|
|
msg |
|
) |
| |
Value: do { \
if (!(expr)) \
PANIC_("not ok!\tAsserton Failed! " msg); \
} while (0)
◆ ASSERT__
Value: do { \
if (!(expr)) \
PANIC_("not ok!.\tAsserton Failed! " #expr); \
else \
fprintf(stderr, "# %s:%d\t\tok.\t%s\n", __FILE__, __LINE__, #expr); \
} while (0)
◆ FLOAT32_INFTY
| #define FLOAT32_INFTY (__builtin_inff()) |
◆ FLOAT32_NEG_INFTY
| #define FLOAT32_NEG_INFTY (-__builtin_inff()) |
◆ PANIC
| #define PANIC |
( |
|
msg, |
|
|
|
... |
|
) |
| |
Value: do { \
fprintf(stderr, "%s:%d\t\t" msg "\n", __FILE__, __LINE__, __VA_ARGS__); \
abort(); \
} while (0)
◆ PANIC_
Value: do { \
fprintf(stderr, "%s:%d\t\t" msg "\n", __FILE__, __LINE__); \
abort(); \
} while (0)
◆ byte
| typedef unsigned char byte |
◆ i32
◆ i8
◆ sz
◆ u16
◆ u32
◆ u64