1
0
aoc-2022/vec2.h
2023-07-01 18:01:58 +03:00

16 lines
215 B
C

#ifndef VEC2_H_
#define VEC2_H_
#include "types.h"
typedef struct {
i32 x, y;
} vec2;
#define TYPEDEF_VEC2(type) typedef struct { type x, y; } vec2_##type
TYPEDEF_VEC2(u8);
TYPEDEF_VEC2(u32);
#endif //VEC2_H_