RobotC pointers, enums, structs

peek & poke, reminds me of my C64 days.

There are no pointers in RobotC. There is no stack in RobotC. Functions in RobotC do not work the same as “normal” C. What can I tell you, it’s not real C.

Would have to seen the code to comment.

You cannot compare an enum to a short, cast the enum like. for example.

typedef enum {
    kVersions = 0,
    kJoystickTest = 1,
} TestMode;
...
...
void MyFunction()
{
    int foo, bar;
    
    if( foo == (short)kVersions )
        bar = 3;
...

}

or (in this case) declare foo as a “TestMode”.

I’m afraid you just have to get used to the fact that RobotC is very much a subset of the C language.