Files
software_rasterizer/main.h

13 lines
344 B
C

#pragma once
#define ASSERT(x) if(!(x)) *(volatile int *)0=0;
#define ARRAY_CAP(x) sizeof((x))/sizeof(*(x))
#define FUNCTION static
#define GLOBAL static
#define MIN(x,y) ((x)>(y)?(y):(x))
#define MAX(x,y) ((x)>(y)?(x):(y))
#define ABS(x) ((x)<0?-(x):(x))
#include <stdint.h>
typedef int64_t I64;
typedef uint64_t U64;
typedef uint32_t U32;