removed unintentionally added NEW macro
This commit is contained in:
parent
913bb32a39
commit
36d378ec37
|
@ -88,11 +88,6 @@ void controllerbutton_set_device(ControllerButton* self, InputDevice* device) {
|
||||||
self->device = 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* compositeaxis1d_new(InputAxis left, InputAxis right, InputEventType type) {
|
||||||
CompositeAxis1D* self = malloc(sizeof(CompositeAxis1D));
|
CompositeAxis1D* self = malloc(sizeof(CompositeAxis1D));
|
||||||
ASSERT_RETURN(self != NULL, NULL, "Failed to allocate space for CompositeAxis1D instance");
|
ASSERT_RETURN(self != NULL, NULL, "Failed to allocate space for CompositeAxis1D instance");
|
||||||
|
|
Loading…
Reference in a new issue