diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2022-04-22 13:05:56 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-09-19 19:06:04 +1000 |
commit | e8355eb16357b0bd234a9bcab1c9e8b72fcdbabc (patch) | |
tree | 894b411f743d6d285f0ed34c6685e9a33818b1cf /examples/natmod/framebuf/framebuf.c | |
parent | 5ddf671944465411f90bd0968550b719d0dbdb80 (diff) | |
download | micropython-e8355eb16357b0bd234a9bcab1c9e8b72fcdbabc.tar.gz micropython-e8355eb16357b0bd234a9bcab1c9e8b72fcdbabc.zip |
py/obj: Add "full" and "empty" non-variable-length mp_obj_type_t.
This will always have the maximum/minimum size of a mp_obj_type_t
representation and can be used as a member in other structs.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'examples/natmod/framebuf/framebuf.c')
-rw-r--r-- | examples/natmod/framebuf/framebuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/natmod/framebuf/framebuf.c b/examples/natmod/framebuf/framebuf.c index 2eff61c817..98b44987b3 100644 --- a/examples/natmod/framebuf/framebuf.c +++ b/examples/natmod/framebuf/framebuf.c @@ -8,7 +8,7 @@ void *memset(void *s, int c, size_t n) { } #endif -mp_obj_type_t mp_type_framebuf; +mp_obj_full_type_t mp_type_framebuf; #include "extmod/modframebuf.c" |