bool volatile ????
Posted: Fri Jan 17, 2020 7:29 am
So its 2AM and i am beat, but still coding.
I was using some variables that I needed to be volatile.
I accidentally typed the following without catching that i declared it backwards.
Yet it compiled. should it not have thrown a error ?
as it should have been:
I was using some variables that I needed to be volatile.
I accidentally typed the following without catching that i declared it backwards.
Code: Select all
bool volatile system_passed = false;
as it should have been:
Code: Select all
volatile bool system_passed = false;