imasiprojects / ImasiEngine

3D Engine Library, by Imasi
2 stars 1 forks source link

Change "#pragma once" to "#ifndef FILE_NAME_EXT" guard #17

Closed ivancea closed 8 years ago

ivancea commented 8 years ago

Original report by Iván Cea (Bitbucket: ivancea, GitHub: ivancea).


#!c++

#pragma once

to

#!c++

#ifndef FILE_NAME_EXT
#define FILE_NAME_EXT
// ...
#endif FILE_NAME_EXT
ivancea commented 8 years ago

Original comment by Iván Sanz (Bitbucket: ivansanz, GitHub: isc30).


Extension not needed. I propose something like:

#ifndef FILENAME
#define FILENAME
// ...
#endif FILENAME