For more than 2 years I have used the folowing construction to prevent files from multiple including:
#ifndef BLA_BLA_BLA
#define BLA_BLA_BLA
// ...
#endif
Recently I descovered the
#pragma once
and even though this seems to be an easier statement, I don't recall EVER seeing it in ANY project, personal or company, big or small - never.
Why is #pragma once not being used all around as it is shorter?
#ifndef BLA_BLA_BLA
#define BLA_BLA_BLA
// ...
#endif
Recently I descovered the
#pragma once
and even though this seems to be an easier statement, I don't recall EVER seeing it in ANY project, personal or company, big or small - never.
Why is #pragma once not being used all around as it is shorter?