diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-04-10 09:07:16 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-04-14 18:24:58 -0500 |
| commit | 5d328c3b449dbd0eaf40c2edc205fb7c5d381589 (patch) | |
| tree | 95cf3bbe40be3b4fb1372791eecaa62af178fb4b | |
| parent | ba20bc8b4322373ec9ed55ed9f299675ea2801f8 (diff) | |
protomatter: clarify by comment why these functions exist
| -rw-r--r-- | shared-bindings/_protomatter/Protomatter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-bindings/_protomatter/Protomatter.c b/shared-bindings/_protomatter/Protomatter.c index 50480004c..3b3fdae8c 100644 --- a/shared-bindings/_protomatter/Protomatter.c +++ b/shared-bindings/_protomatter/Protomatter.c @@ -309,10 +309,12 @@ STATIC void protomatter_protomatter_get_bufinfo(mp_obj_t self_in, mp_buffer_info *bufinfo = self->bufinfo; } +// This version exists so that the return value of the function can be none, matching the protocol STATIC void protomatter_protomatter_swapbuffers_void(mp_obj_t self_in) { protomatter_protomatter_swapbuffers(self_in); } +// This version exists so that the return value of the function can be none, matching the protocol STATIC void protomatter_protomatter_deinit_void(mp_obj_t self_in) { protomatter_protomatter_deinit(self_in); } |
