Today I decided to switch back to C++.
I don't know what to do:
There is a global variable, renderer. It's declared as extern in a header file, so I can use it from other files.
And now, should I declare it like this? :
.h extern Renderer* renderer; .cpp renderer = new Renderer;Or like this:
.h extern Renderer renderer; .cpp renderer = Renderer();
Maybe it's a stupid question but it's a dilemma for me :s
Which option is better?