formatting changes

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

View file

@ -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