From dc6de4ca147df3221482c28f05978dd8b09dbe16 Mon Sep 17 00:00:00 2001 From: bjorn Date: Fri, 25 Mar 2022 12:10:45 -0700 Subject: [PATCH] Freeze! GCC police; --- src/modules/math/curve.h | 10 +++++----- src/util.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/math/curve.h b/src/modules/math/curve.h index 0c3f8c2c..0376e431 100644 --- a/src/modules/math/curve.h +++ b/src/modules/math/curve.h @@ -3,11 +3,11 @@ typedef struct Curve Curve; Curve* lovrCurveCreate(void); void lovrCurveDestroy(void* ref); -void lovrCurveEvaluate(Curve* curve, float t, float point[4]); -void lovrCurveGetTangent(Curve* curve, float t, float point[4]); +void lovrCurveEvaluate(Curve* curve, float t, float* point); +void lovrCurveGetTangent(Curve* curve, float t, float* point); Curve* lovrCurveSlice(Curve* curve, float t1, float t2); size_t lovrCurveGetPointCount(Curve* curve); -void lovrCurveGetPoint(Curve* curve, size_t index, float point[4]); -void lovrCurveSetPoint(Curve* curve, size_t index, float point[4]); -void lovrCurveAddPoint(Curve* curve, float point[4], size_t index); +void lovrCurveGetPoint(Curve* curve, size_t index, float* point); +void lovrCurveSetPoint(Curve* curve, size_t index, float* point); +void lovrCurveAddPoint(Curve* curve, float* point, size_t index); void lovrCurveRemovePoint(Curve* curve, size_t index); diff --git a/src/util.h b/src/util.h index 919e89ad..aacc726a 100644 --- a/src/util.h +++ b/src/util.h @@ -31,7 +31,7 @@ typedef struct Color { float r, g, b, a; } Color; // Error handling typedef void errorFn(void*, const char*, va_list); void lovrSetErrorCallback(errorFn* callback, void* userdata); -void _Noreturn lovrThrow(const char* format, ...); +_Noreturn void lovrThrow(const char* format, ...); #define lovrAssert(c, ...) if (!(c)) { lovrThrow(__VA_ARGS__); } #ifdef LOVR_UNCHECKED