aboutsummaryrefslogtreecommitdiff
path: root/src/utils/types.h
blob: b75d64da599e1f3ee7a6a4f0c2e0d29516808972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <stdint.h>
#include <stdio.h>

#ifndef __cplusplus
  #if (__STDC_VERSION__ < 202000L)
typedef enum bool : uint8_t { false = 0, true = 1 } bool;
  #endif
#endif

typedef struct SizedString {
  char *str;
  size_t size;
} SizedString;

#define ERROR_SIZE INT64_MAX