Advertisement

uint8 -> uint8_t alias?

Started by October 21, 2019 05:21 AM
3 comments, last by Servant of the Lord 5 years, 1 month 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. 

will typedef uint8_t uint8; do the trick?

Advertisement

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