removed unintentionally added NEW macro

This commit is contained in:
Sara 2023-11-22 15:13:14 +01:00
parent 913bb32a39
commit 36d378ec37

View file

@ -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");