aboutsummaryrefslogtreecommitdiff
path: root/client/global.h
blob: de0873bbf7b51b114f510d92e2f37ef77221b261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <stdbool.h>
#include <stdint.h>
#include <inttypes.h>
#include "memory.h"

typedef int64_t i64;
typedef uint64_t u64;

void die(const char *format,...) __attribute__((noreturn, format(printf, 1, 2)));
void die_perror(const char *func) __attribute__((noreturn));

void debug(const char *format,...) __attribute__((format(printf, 1, 2)));