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/point.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/point.c') diff --git a/includes/point.c b/includes/point.c index a68fcf2..99fe0bb 100644 --- a/includes/point.c +++ b/includes/point.c @@ -11,13 +11,13 @@ DEFINE_OBJECT_STRUCTURE(TYPE) { CONSTRUCTOR_IMPLEMENT(TYPE); -void METHOD_ARG(TYPE, init, float x, float y) { +void METHOD(TYPE, init, float x, float y) { CATCH_SELF_NULL(TYPE_init); self->x = x; self->y = y; } -int METHOD_ARG(TYPE, toString, char* buffer) { +int METHOD(TYPE, toString, char* buffer) { CATCH_SELF_NULL(TYPE_toString); return sprintf(buffer, NAMEOF(TYPE) " { x = %.2f, y = %.2f }", self->x, self->y); } -- cgit v1.2.3