diff options
author | Jonas Kohl <gitlab@jonaskohl.de> | 2024-08-30 23:11:31 +0200 |
---|---|---|
committer | Jonas Kohl <gitlab@jonaskohl.de> | 2024-08-30 23:11:31 +0200 |
commit | df27145973d68b734e975c1813d5c1ada53c2c24 (patch) | |
tree | 7156e4acdff8c9cd987006e60ac3db4ad3e2cb02 /includes/point.c | |
parent | f562db1d3303d81ce5fe9440cc858e24a7a26eff (diff) |
Diffstat (limited to 'includes/point.c')
-rw-r--r-- | includes/point.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |