diff --git a/src/transformable.h b/src/transformable.h index 42d38dd..5e9c79c 100644 --- a/src/transformable.h +++ b/src/transformable.h @@ -18,16 +18,16 @@ typedef struct { #define impl_Transformable_for(T, get_transform_f, get_position_f, get_scale_f, get_rotation_f)\ static inline Transformable T##_as_Transformable(T* x) {\ - TC_FN_TYPECHECK(Transform*, get_transform_f, T* e);\ - TC_FN_TYPECHECK(Vector*, get_position_f, T* e);\ - TC_FN_TYPECHECK(float*, get_rotation_f, T* e);\ + TC_FN_TYPECHECK(Transform*, get_transform_f, T*);\ + TC_FN_TYPECHECK(Vector*, get_position_f, T*);\ + TC_FN_TYPECHECK(float*, get_rotation_f, T*);\ static ITransformable const tc = {\ .get_transform = (Transform*(*const)(void*)) get_transform_f,\ .get_position = (Vector*(*const)(void*)) get_position_f,\ .get_scale = (Vector*(*const)(void*)) get_scale_f,\ .get_rotation = (float*(*const)(void*)) get_rotation_f\ };\ - return (Transformable){.tc = &tc, .data = x };\ + return (Transformable){.tc = &tc, .data = x};\ } #endif // !_fencer_transformable_h