From df27145973d68b734e975c1813d5c1ada53c2c24 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Fri, 30 Aug 2024 23:11:31 +0200 Subject: Merge METHOD_ARG and METHOD macros --- includes/rect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/rect.c') diff --git a/includes/rect.c b/includes/rect.c index 36abde7..89b554b 100644 --- a/includes/rect.c +++ b/includes/rect.c @@ -10,14 +10,14 @@ DEFINE_OBJECT_STRUCTURE(TYPE) { CONSTRUCTOR_IMPLEMENT(TYPE); -void METHOD_ARG(TYPE, init, int l, int t, int w, int h) { +void METHOD(TYPE, init, int l, int t, int w, int h) { self->left = l; self->top = t; self->width = w; self->height = h; } -int METHOD_ARG(TYPE, toString, char* buffer) { +int METHOD(TYPE, toString, char* buffer) { return sprintf(buffer, NAMEOF(TYPE) " { left = %i, top = %i, width = %i, height = %i }", self->left, self->top, self->width, self->height); } -- cgit v1.2.3