//+------------------------------------------------------------------+ //| Tables.mqh | //| Copyright 2026, Niquel Mendoza. | //| https://www.mql5.com/es/users/nique_372 | //+------------------------------------------------------------------+ #ifndef TSNPARSERIN_CPP_DLL #property copyright "Copyright 2026, Niquel Mendoza." #property link "https://www.mql5.com/es/users/nique_372" #property strict #endif // TSNPARSERIN_CPP_DLL #ifndef TSNTABES_SRC_TABLES_MQH #define TSNTABES_SRC_TABLES_MQH //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ #ifdef TSNPARSERIN_CPP_DLL // TSNPARSERIN_CPP_DLL // Tipado para c++ #include #endif // TSNPARSERIN_CPP_DLL //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ namespace TSN { //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ union TsnBitInterprete { ulong ulong_value; long long_value; double double_value; }; template union TsnValToBytes { uchar bytes[sizeof(TValue)]; TValue value; }; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ #define IsDigit(c) ((c ^ '0') <= 9) #define IsNotDigit(c) ((c ^ '0') > 9) //--- Inf + #define TSN_DBL_INF_LONG_BITS int64_t(0x7FF0000000000000) //--- Inf - #define TSN_DBL_INF_NEG_LONG_BITS int64_t(0xFFF0000000000000) //--- Nan #define TSN_DBL_NAN_LONG_BITS int64_t(0x7FFFFFFFFFFFFFFF) //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ //--- const uint8_t g_arr_table_true[4] = { 't', 'r', 'u', 'e' }; //--- const uint8_t g_arr_table_false[5] = { 'f', 'a', 'l', 's', 'e' }; } //+------------------------------------------------------------------+ #endif // TSNTABES_SRC_TABLES_MQH