jonathanpeppers / dotnes

.NET for the NES game console
MIT License
643 stars 18 forks source link

Feature Request: Implement IntPtr.Size #33

Open pm64 opened 5 months ago

pm64 commented 5 months ago

Transpilation currently fails with "NotImplementedException: GetAddress for get_Size is not implemented!"

While this project is in its infancy and there's no shortage of things to implement, it would be nice to be able to ascertain the platform's bitness in a way that can be demonstrated on NES.

Amazing project, thanks for all you do!

jonathanpeppers commented 5 months ago

Yeah, we could probably inline IntPtr.Size that would make sense to me. So we'd just emit the right number inline at build time.

Do you have a code example you can share?