mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-09-29 06:55:15 +00:00
CodingConventions.txt: updated for PR #866
This commit is contained in:
parent
01ad5d1882
commit
8811651270
@ -30,9 +30,16 @@ This is for shared vars, enums, structs, classes, etc.
|
|||||||
EG. const/enum/struct
|
EG. const/enum/struct
|
||||||
Obviously not for global funcs or vars.
|
Obviously not for global funcs or vars.
|
||||||
|
|
||||||
1.4: PCH (StdAfx.h)
|
1.4: At the start of each header file it must contain: #pragma once
|
||||||
Could ditch this.
|
|
||||||
Does this gain anything for such a simple project?
|
1.5: Each module (.cpp) to include stdafx.h, and then immediately after include
|
||||||
|
the header file for that module.
|
||||||
|
EG. For Debug.cpp:
|
||||||
|
#include "stdafx.h"
|
||||||
|
#include "Debug."
|
||||||
|
|
||||||
|
This ensures that this header file can be included in any order in another module,
|
||||||
|
and therefore by extension all header files can be included in any order.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user