Hrm, I have one more question, and this one is a quicky (or at least I think it is ^_^;).
Looking over the code for SWR, I see a lot of instances of something like
While I know that this is necessary in C so that you can do something like
I can't see any, but that doesn't mean there aren't, hence why I'm asking. :D
I have the same question regarding
Looking over the code for SWR, I see a lot of instances of something like
typedef enum
{
LOG_NORMAL, LOG_ALWAYS, LOG_NEVER, LOG_BUILD, LOG_HIGH, LOG_COMM, LOG_ALL
} log_types;While I know that this is necessary in C so that you can do something like
log_types log = LOG_NORMAL;, is there any difference at all in C++ between this and the following?enum log_types
{
LOG_NORMAL, LOG_ALWAYS, LOG_NEVER, LOG_BUILD, LOG_HIGH, LOG_COMM, LOG_ALL
};I can't see any, but that doesn't mean there aren't, hence why I'm asking. :D
I have the same question regarding
structs. I know that you can just do Struct myStruct; without a typedef, but are there any other differences of which I'm unaware? Thanks in advance. :)