summaryrefslogtreecommitdiff
path: root/includes/point.c
diff options
context:
space:
mode:
authorJonas Kohl <gitlab@jonaskohl.de>2024-08-30 23:11:31 +0200
committerJonas Kohl <gitlab@jonaskohl.de>2024-08-30 23:11:31 +0200
commitdf27145973d68b734e975c1813d5c1ada53c2c24 (patch)
tree7156e4acdff8c9cd987006e60ac3db4ad3e2cb02 /includes/point.c
parentf562db1d3303d81ce5fe9440cc858e24a7a26eff (diff)
Merge METHOD_ARG and METHOD macrosHEADmain
Diffstat (limited to 'includes/point.c')
-rw-r--r--includes/point.c4
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);
}