Skip to content

Conversation

@kkazuha7
Copy link
Contributor

  • Add new #magic macro supporting ASCII strings of any length
  • Extends beyond #magicNumber's 2/4/8 byte limitation
  • Uses InlineArray<N, UInt8> for compile-time optimization
  • Add _loadAndCheckInlineArrayBytes helper function
  • Add InlineArray Equatable conformance for UInt8 elements
  • Include comprehensive tests: macro expansion + end-to-end runtime
  • Maintains backward compatibility with existing #magicNumber

Checklist

  • I've added at least one test that validates that my change is working, if appropriate
  • I've followed the code style of the rest of the project
  • I've run Scripts/format.sh to correctly format my change
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary

  - Add new #magic macro supporting ASCII strings of any length
  - Extends beyond #magicNumber's 2/4/8 byte limitation
  - Uses InlineArray<N, UInt8> for compile-time optimization
  - Add _loadAndCheckInlineArrayBytes helper function
  - Add InlineArray Equatable conformance for UInt8 elements
  - Include comprehensive tests: macro expansion + end-to-end runtime
  - Maintains backward compatibility with existing #magicNumber
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