Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: SpitFire707 on January 25, 2014, 03:08:56 am

Title: 13.12 Code Completion token is public instead of private
Post by: SpitFire707 on January 25, 2014, 03:08:56 am
I am writing a chip8 emulator as a fun project, and when using the dot(.) operator on an object of class chip8, the function void init() token shows up green as public instead of red as private, in the code completion window.
Code: [Select]
class chip8 {
private:
unsigned short int opcode;
unsigned char memory[4096];
unsigned char V[16];
unsigned short int I;
unsigned short int pc;
unsigned char delayTimer;
unsigned char soundTimer;
unsigned short int chip8Stack[16];
unsigned short int sp;
void init();

(http://i.imgur.com/VM2Xn3e.png?1)

EDIT: I reloaded the project, which I should have done before making this post  ;D, and everything is working fine again.
Title: Re: 13.12 Code Completion token is public instead of private
Post by: ollydbg on January 25, 2014, 02:05:20 pm
This is my test on latest SVN head.

Source code:
Code: [Select]

class chip8 {
private:
unsigned short int opcode;
unsigned char memory[4096];
unsigned char V[16];
unsigned short int I;
unsigned short int pc;
unsigned char delayTimer;
unsigned char soundTimer;
unsigned short int chip8Stack[16];
unsigned short int sp;
void init();
};

void f()
{

    chip8 aaa;

    aaa.
}


It looks like I don't have this issue, see screen shot below.

(http://img542.imageshack.us/img542/1484/vux4.png)