From 36d378ec372b618f98209db738d25e258c84708f Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 22 Nov 2023 15:13:14 +0100 Subject: [PATCH] removed unintentionally added NEW macro --- core/src/input_axis.c | 5 ----- 1 file changed, 5 deletions(-) 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");