From f237da1b93e71d7aac83dfd816fea4be48f21732 Mon Sep 17 00:00:00 2001 From: Sara Date: Sat, 7 Oct 2023 18:43:30 +0200 Subject: [PATCH] renamed self to data for transformable interface --- src/transformable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transformable.h b/src/transformable.h index 32f38c3..42d38dd 100644 --- a/src/transformable.h +++ b/src/transformable.h @@ -12,7 +12,7 @@ typedef struct { } ITransformable; typedef struct { - void* self; + void* data; ITransformable const* tc; } Transformable; @@ -27,7 +27,7 @@ static inline Transformable T##_as_Transformable(T* x) {\ .get_scale = (Vector*(*const)(void*)) get_scale_f,\ .get_rotation = (float*(*const)(void*)) get_rotation_f\ };\ - return (Transformable){.tc = &tc, .self = x };\ + return (Transformable){.tc = &tc, .data = x };\ } #endif // !_fencer_transformable_h