Skip to main content
GameDev.net gamedev.net
🔒 Locked

uint8 -> uint8_t alias?

Started by Servant of the Lord Oct 21, 2019 at 5:21 AM 3 replies 4.7k views
Original Post
Servant of the Lord
Servant of the Lord

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.

Servant of the Lord
Servant of the Lord

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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.