View Single Post
Author Message
SomePanns
Senior Member
Join Date: Dec 2013
Old 05-25-2016 , 13:17   Get amount of rows in enum
Reply With Quote #1

So, I'm trying to figure out how to count the amount of "rows" there's in a specific enum.

For example:
Code:
enum EnumRows
{
VAR1=0,
VAR2,
VAR3,
VAR4
};
In this case, there are 4 "rows" in the enum, but how would I count that with a function?
SomePanns is offline