Skip to content

Commit

Permalink
修改CPP文件生成器头文件保护宏命名规则
Browse files Browse the repository at this point in the history
  • Loading branch information
188080501 committed Jun 14, 2017
1 parent 33dd26f commit 265e966
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
#ifndef __%MACROPROTECTSPREFIX%_%CLASSNAME%__
#define __%MACROPROTECTSPREFIX%_%CLASSNAME%__

// .h include
// .h include
#include "%classname%.h"

#endif//__%MACROPROTECTSPREFIX%_%CLASSNAME%__
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
#ifndef __%MACROPROTECTSPREFIX%_%CLASSNAME%__
#define __%MACROPROTECTSPREFIX%_%CLASSNAME%__

// .h include
// .h include
#include "%classname%.h"

#endif//__%MACROPROTECTSPREFIX%_%CLASSNAME%__
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __%MACROPROTECTSPREFIX%_%CLASSNAME%_H__
#define __%MACROPROTECTSPREFIX%_%CLASSNAME%_H__
#ifndef %MACROPROTECTSPREFIX%_%CLASSNAME%_H_
#define %MACROPROTECTSPREFIX%_%CLASSNAME%_H_

// Qt lib import
#include <QObject>
Expand All @@ -24,4 +24,4 @@ public slots:
// .inc include
#include "%classname%.inc"

#endif//__%MACROPROTECTSPREFIX%_%CLASSNAME%_H__
#endif//%MACROPROTECTSPREFIX%_%CLASSNAME%_H_
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __%MACROPROTECTSPREFIX%_%CLASSNAME%_INC__
#define __%MACROPROTECTSPREFIX%_%CLASSNAME%_INC__
#ifndef %MACROPROTECTSPREFIX%_%CLASSNAME%_INC_
#define %MACROPROTECTSPREFIX%_%CLASSNAME%_INC_

// .h include
#include "%classname%.h"

#endif//__%MACROPROTECTSPREFIX%_%CLASSNAME%_INC__
#endif//%MACROPROTECTSPREFIX%_%CLASSNAME%_INC_
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __%MACROPROTECTSPREFIX%_%CLASSNAME%_H__
#define __%MACROPROTECTSPREFIX%_%CLASSNAME%_H__
#ifndef %MACROPROTECTSPREFIX%_%CLASSNAME%_H_
#define %MACROPROTECTSPREFIX%_%CLASSNAME%_H_

// Qt lib import
#include <QObject>
Expand Down Expand Up @@ -27,4 +27,4 @@ public slots:
// .inc include
#include "%classname%.inc"

#endif//__%MACROPROTECTSPREFIX%_%CLASSNAME%_H__
#endif//%MACROPROTECTSPREFIX%_%CLASSNAME%_H_
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __%MACROPROTECTSPREFIX%_%CLASSNAME%_INC__
#define __%MACROPROTECTSPREFIX%_%CLASSNAME%_INC__
#ifndef %MACROPROTECTSPREFIX%_%CLASSNAME%_INC_
#define %MACROPROTECTSPREFIX%_%CLASSNAME%_INC_

// .h include
#include "%classname%.h"

#endif//__%MACROPROTECTSPREFIX%_%CLASSNAME%_INC__
#endif//%MACROPROTECTSPREFIX%_%CLASSNAME%_INC_

0 comments on commit 265e966

Please sign in to comment.