aboutsummaryrefslogtreecommitdiffstats
path: root/test/raytracer/config.h
blob: 009c125e44b1e553429b06611d743f8f9448818f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <math.h>
#include <assert.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#ifndef M_PI
# define M_PI 3.14159265358979323846
#endif

#ifdef SINGLE_PRECISION
typedef float flt;
#else
typedef double flt;
#endif

void arena_init(void);
void arena_clear(void);
void * arena_alloc(int size);