1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-06 10:33:03 +00:00

Use ATEND macros to add fields to abstract types.

This means we can add new properties to abstract types without
breaking old code. We can also make simple abstract types without
needing to add many NULL fields to the type.
This commit is contained in:
Calvin Rose
2020-01-20 13:06:50 -06:00
parent 3c87d89df3
commit 2dd852da54
9 changed files with 26 additions and 49 deletions

View File

@@ -47,13 +47,7 @@ JanetAbstractType cfun_io_filetype = {
cfun_io_gc,
NULL,
io_file_get,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
JANET_ATEND_GET
};
/* Check arguments to fopen */