formatting changes

This commit is contained in:
Sara 2023-10-08 23:08:56 +02:00
parent 49191e85ba
commit d3d5382eb5

View file

@ -18,9 +18,9 @@ typedef struct {
#define impl_Transformable_for(T, get_transform_f, get_position_f, get_scale_f, get_rotation_f)\ #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) {\ static inline Transformable T##_as_Transformable(T* x) {\
TC_FN_TYPECHECK(Transform*, get_transform_f, T* e);\ TC_FN_TYPECHECK(Transform*, get_transform_f, T*);\
TC_FN_TYPECHECK(Vector*, get_position_f, T* e);\ TC_FN_TYPECHECK(Vector*, get_position_f, T*);\
TC_FN_TYPECHECK(float*, get_rotation_f, T* e);\ TC_FN_TYPECHECK(float*, get_rotation_f, T*);\
static ITransformable const tc = {\ static ITransformable const tc = {\
.get_transform = (Transform*(*const)(void*)) get_transform_f,\ .get_transform = (Transform*(*const)(void*)) get_transform_f,\
.get_position = (Vector*(*const)(void*)) get_position_f,\ .get_position = (Vector*(*const)(void*)) get_position_f,\