🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

uint8 -> uint8_t alias?

Started by
3 comments, last by Servant of the Lord 4 years, 8 months ago

I see that uint32 is already an alias for uint.

Is there a way I can create aliases for uint8, uint16, uint32, etc... for adding a _t to the end of their names? uint8_t, uint16_t, etc...?

I ask because forgetting to remove the _t is probably my most frequent mistake when registering object properties. 

Advertisement

will typedef uint8_t uint8; do the trick?

Yes, you can use typedef in the script for this. Or if you prefer, you can register the typedef from the application.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Thanks, that's precisely what I'm wanting.
I don't know why I didn't think of typedefs.

This topic is closed to new replies.

Advertisement