diff --git a/core/src/input_axis.c b/core/src/input_axis.c index 60c9333..162a897 100644 --- a/core/src/input_axis.c +++ b/core/src/input_axis.c @@ -88,11 +88,6 @@ void controllerbutton_set_device(ControllerButton* self, InputDevice* device) { self->device = device; } -#define NEW(__Type, __Variable, ...)\ -__Type *__Variable = malloc(sizeof(__Type));\ -if(__Variable == NULL) LOG_ERROR("Failed to allocate memory for " #__Variable);\ -*__Variable = (__Type)__VA_ARGS__; - CompositeAxis1D* compositeaxis1d_new(InputAxis left, InputAxis right, InputEventType type) { CompositeAxis1D* self = malloc(sizeof(CompositeAxis1D)); ASSERT_RETURN(self != NULL, NULL, "Failed to allocate space for CompositeAxis1D instance");