I'm sure this has been asked here already but I can't locate the answer...
In c we have this:
#define COMMAND_ARGUMENTS_SIZE (3)
typedef struct
{
unsinged char opcode;
unsigned char arguments[COMMAND_ARGUMENTS_SIZE];
} Command;
In c# we'd like this:
struct Command
{
byte opcode;
byte arguments[...];
}
The array sizes are in a state of flux and we have them used across several files. We'd like to keep the #define (but we know we can't....). This is a port and we're not about to do major rewrites.