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

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

#ifndef __cplusplus
  #if (__STDC_VERSION__ < 202000L)
    #include <stdint.h>
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