Skip to content

C++ ergonomics#64

Merged
treeform merged 1 commit into
masterfrom
cpp-ergonomics
May 25, 2026
Merged

C++ ergonomics#64
treeform merged 1 commit into
masterfrom
cpp-ergonomics

Conversation

@treeform
Copy link
Copy Markdown
Owner

@treeform treeform commented May 25, 2026

  • Use C++ standard integer spelling in generated C++ headers: <cstdint>, std::int*_t, std::uint*_t, std::intptr_t, and std::uintptr_t.
  • Emit C++ constants as static constexpr values and enum aliases as using ... = std::uint8_t with typed constexpr entries instead of preprocessor macros.
  • Store generated C++ reference handles as std::uintptr_t and return bool from generated C++ equality ABI declarations.
  • Add C++ sequence wrapper constructors and methods: size, get, operator[], set, removeAt, add, and clear.
  • Add owner methods for exported sequence fields, such as addGradientStops, gradientStopsSize, and getGradientStops.

@treeform treeform marked this pull request as ready for review May 25, 2026 17:50
@treeform treeform merged commit 84c4c2d into master May 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant