aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index e289189..db6f7a8 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -38,4 +38,8 @@ typedef enum FTError {
#define TOGGLE_BIT(b, n) (b ^ (0x1 << n))
#define HAS_FLAG(v, f) ((v & f) == f)
+// Helpful for debugging
+#define PRINT_VECTOR2(v) printf("%f %f\n", v.x, v.y)
+#define PRINT_VECTOR3(v) printf("%f %f %f\n", v.x, v.y, v.z)
+
#endif