libmatrix
oxidation.h
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include <stdbool.h>
13 #include <stdint.h>
14 #include <stdlib.h>
15 
16 typedef int8_t i8;
17 typedef int16_t i16;
18 typedef int32_t i32;
19 typedef int64_t i64;
20 typedef uint8_t u8;
21 typedef uint16_t u16;
22 typedef uint32_t u32;
23 typedef uint64_t u64;
24 typedef float f32;
25 typedef double f64;
26 typedef long double f128;
27 typedef char* str;
28 
29 typedef struct {
30  void* val;
31  char* err;
32 } Result;
33 
34 Result Ok(void* val);
35 Result Err(char* err);
36 bool is_err(Result res);
37 bool is_ok(Result res);
Result
Definition: oxidation.h:29