forked from airat77786/MQL5Book
26 lines
930 B
MQL5
26 lines
930 B
MQL5
//+------------------------------------------------------------------+
| |||
//| Preprocessor.mqh |
| |||
//| Copyright 2021, MetaQuotes Ltd. |
| |||
//| https://www.mql5.com |
| |||
//+------------------------------------------------------------------+
| |||
| |||
double array[] =
| |||
{
| |||
#include "preprocessor.txt"
| |||
};
| |||
| |||
//+------------------------------------------------------------------+
| |||
//| Replacement wrapper for OnStart function |
| |||
//+------------------------------------------------------------------+
| |||
void OnStart()
| |||
{
| |||
Print(__FUNCTION__, " wrapper started");
| |||
ArrayPrint(array);
| |||
// ... do some work
| |||
_OnStart();
| |||
// ... do some work
| |||
Print(__FUNCTION__, " wrapper done");
| |||
}
| |||
| |||
#define OnStart _OnStart
| |||
//+------------------------------------------------------------------+
|