Skip to content

Commit

Permalink
Adds #pragma once
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed May 4, 2021
1 parent 4c1a346 commit 5447341
Show file tree
Hide file tree
Showing 38 changed files with 196 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Account.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Account's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

/* Account type of values for statistics. */
enum ENUM_ACC_STAT_VALUE {
ACC_BALANCE = 0,
Expand Down
5 changes: 5 additions & 0 deletions Account.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Account's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Forward class declaration.
class Serializer;

Expand Down
5 changes: 5 additions & 0 deletions Action.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
* Includes Action's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Prevents processing this includes file for the second time.
#ifndef ACTION_ENUM_H
#define ACTION_ENUM_H
Expand Down
5 changes: 5 additions & 0 deletions Action.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
* Includes Action's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Includes.
#include "Account.enum.h"
#include "Action.enum.h"
Expand Down
5 changes: 5 additions & 0 deletions Bar.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Bar's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

/* Pivot Point calculation method. */
enum ENUM_PP_TYPE {
PP_CAMARILLA = 1, // A set of eight levels which resemble support and resistance values
Expand Down
5 changes: 5 additions & 0 deletions Bar.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Bar's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Includes.
#include "Bar.enum.h"
#include "Serializer.mqh"
Expand Down
5 changes: 5 additions & 0 deletions Chart.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Chart's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Defines enumeration for chart parameters.
enum ENUM_CHART_PARAM {
CHART_PARAM_NONE = 0, // None
Expand Down
5 changes: 5 additions & 0 deletions Chart.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Chart's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Forward class declaration.
class Class;

Expand Down
5 changes: 5 additions & 0 deletions Condition.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
* Includes Condition's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Prevents processing this includes file for the second time.
#ifndef CONDITION_ENUM_H
#define CONDITION_ENUM_H
Expand Down
5 changes: 5 additions & 0 deletions Condition.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
* Includes Condition's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Includes.
#include "Account.enum.h"
#include "Chart.enum.h"
Expand Down
6 changes: 6 additions & 0 deletions Data.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
* @file
* Includes Data's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

#ifndef __MQL__
/**
* Enumeration for the Data type identifiers.
Expand Down
5 changes: 5 additions & 0 deletions Data.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Data's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Forward class declaration.
class Serializer;
struct MqlParam;
Expand Down
5 changes: 5 additions & 0 deletions DateTime.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes DateTime's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

/* Defines datetime conditions. */
enum ENUM_DATETIME_CONDITION {
DATETIME_COND_IS_PEAK_HOUR = 1, // On peak hour
Expand Down
5 changes: 5 additions & 0 deletions DateTime.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes DateTime's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Includes.
#include "DateTime.enum.h"
#include "DateTime.struct.h"
Expand Down
5 changes: 5 additions & 0 deletions EA.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes EA's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

/* Defines EA input data types. */
enum ENUM_EA_DATA_STORE_TYPE {
EA_DATA_STORE_NONE = 0 << 0,
Expand Down
5 changes: 5 additions & 0 deletions EA.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes EA's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Includes.
#include "DateTime.mqh"
#include "Task.struct.h"
Expand Down
5 changes: 5 additions & 0 deletions Indicator.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Indicator's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

/* Indicator actions. */
enum ENUM_INDICATOR_ACTION {
INDI_ACTION_CLEAR_CACHE, // Clear cache.
Expand Down
5 changes: 5 additions & 0 deletions Indicator.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Indicator's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Forward declaration.
class Indicator;

Expand Down
5 changes: 5 additions & 0 deletions Math.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
* Includes Math's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Prevents processing this includes file for the second time.
#ifndef MATH_ENUM_H
#define MATH_ENUM_H
Expand Down
5 changes: 5 additions & 0 deletions Math.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
* Includes Math's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Prevents processing this includes file for the second time.
#ifndef MATH_STRUCT_H
#define MATH_STRUCT_H
Expand Down
5 changes: 5 additions & 0 deletions Order.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Order's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

/* Order actions. */
enum ENUM_ORDER_ACTION {
ORDER_ACTION_CLOSE = 1, // Close the order.
Expand Down
5 changes: 5 additions & 0 deletions Order.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Order's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

#include "Serializer.mqh"

#ifdef __MQL4__
Expand Down
5 changes: 5 additions & 0 deletions Pattern.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Pattern's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

/* Enumeration for 1-candle patterns. */
enum ENUM_PATTERN_1CANDLE {
// Single candlestick (bar) patterns.
Expand Down
5 changes: 5 additions & 0 deletions Pattern.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Pattern's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Includes.
#include "Bar.struct.h"
#include "Pattern.enum.h"
Expand Down
10 changes: 10 additions & 0 deletions Redis.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@
*
*/

/**
* @file
* Includes Redis's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Forward declaration.
class Serializer;

Expand Down
5 changes: 5 additions & 0 deletions Refs.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Refs' structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Forward class declaration.
class Refs;

Expand Down
5 changes: 5 additions & 0 deletions Serializer.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Serializer's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

/* Enumeration for serializer enter mode. */
enum SerializerEnterMode { SerializerEnterArray, SerializerEnterObject };

Expand Down
5 changes: 5 additions & 0 deletions SerializerNode.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes SerializerNode's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

/* Enumeration for serializer node type. */
enum SerializerNodeType {
SerializerNodeUnknown,
Expand Down
5 changes: 5 additions & 0 deletions Strategy.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Strategy's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

/* Enumeration for strategy bitwise open methods. */
enum ENUM_OPEN_METHOD {
OPEN_METHOD1 = 1, // Method #1.
Expand Down
5 changes: 5 additions & 0 deletions Strategy.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes Strategy's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Includes.
#include "Serializer.mqh"
#include "Strategy.enum.h"
Expand Down
5 changes: 5 additions & 0 deletions SymbolInfo.enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes SymbolInfo's enums.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Enum constants.
const ENUM_SYMBOL_INFO_DOUBLE market_dcache[] = {SYMBOL_MARGIN_INITIAL,
SYMBOL_MARGIN_LIMIT,
Expand Down
5 changes: 5 additions & 0 deletions SymbolInfo.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Includes SymbolInfo's structs.
*/

#ifndef __MQL__
// Allows the preprocessor to include a header file when it is needed.
#pragma once
#endif

// Includes.
#include "SerializerNode.mqh"

Expand Down
Loading

0 comments on commit 5447341

Please sign in to comment.