Skip to content

Commit

Permalink
Generate Object getter/property macros to remove duplications (#15386)
Browse files Browse the repository at this point in the history
Generates the macros from an external generator script that inlines the actual
macro implementations, instead of using macros to generate the macros
and duplicating the actual implementation multiple times.
This has no significant impact on compilation time or memory usage.
  • Loading branch information
ysbaddaden authored Feb 12, 2025
1 parent 8e4cfcd commit 8b2a9aa
Show file tree
Hide file tree
Showing 4 changed files with 2,602 additions and 946 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ lib/** linguist-vendored

# produced by scripts/generate_windows_zone_names.cr
src/crystal/system/win32/zone_names.cr linguist-generated
# produced by scripts/generate_object_properties.cr
src/object/properties.cr
# produced by scripts/generate_html_entities.cr
src/html/entities.cr linguist-generated
# produced by scripts/generate_ssl_server_defaults.cr
Expand Down
Loading

0 comments on commit 8b2a9aa

Please sign in to comment.