Skip to content

Commit 1900433

Browse files
committed
protomatter: clarify by comment why these functions exist
1 parent f630b78 commit 1900433

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shared-bindings/_protomatter/Protomatter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,12 @@ STATIC void protomatter_protomatter_get_bufinfo(mp_obj_t self_in, mp_buffer_info
309309
*bufinfo = self->bufinfo;
310310
}
311311

312+
// This version exists so that the return value of the function can be none, matching the protocol
312313
STATIC void protomatter_protomatter_swapbuffers_void(mp_obj_t self_in) {
313314
protomatter_protomatter_swapbuffers(self_in);
314315
}
315316

317+
// This version exists so that the return value of the function can be none, matching the protocol
316318
STATIC void protomatter_protomatter_deinit_void(mp_obj_t self_in) {
317319
protomatter_protomatter_deinit(self_in);
318320
}

0 commit comments

Comments
 (0)