Skip to content

Commit b906643

Browse files
authored
Update Strings Encryption.HPP
1 parent d0cd402 commit b906643

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Strings Encryption.HPP

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#pragma once
33

44
#include "Requirements.HPP"
5-
#include "SeRnd.HPP"
5+
#include "SeRnd.HPP" // #include SE_RND_HPP /* ".vcxproj" <PreprocessorDefinitions>SE_RND_HPP="$(SERND)";%(PreprocessorDefinitions)</PreprocessorDefinitions> */
66

77
template < int ... > struct SE_IDX_LST; template < typename, int > struct SE_APP;
88
template < int ... SE_LFT, int SE_RGT > struct SE_APP < ::SE_IDX_LST < SE_LFT ... >, SE_RGT > { typedef ::SE_IDX_LST < SE_LFT ..., SE_RGT > SE_RES; };
@@ -18,8 +18,13 @@ template < int ... SE_IDX > struct SE_XOR_STR < ::SE_IDX_LST < SE_IDX ... > > {
1818
} static inline int SE_ITR{ };
1919
};
2020

21-
#define XS(SE_STR) (::SE_XOR_STR < ::SE_CST_IDX_LST < sizeof (SE_STR) - 1 > ::SE_RES > (SE_STR).SE_DEC())
22-
#define XCS(SE_STR) ((::SE_XOR_STR < ::SE_CST_IDX_LST < sizeof (SE_STR) - 1 > ::SE_RES > (SE_STR).SE_DEC()).c_str())
21+
#ifndef NO_STRENC
22+
# define XS(SE_STR) (::SE_XOR_STR < ::SE_CST_IDX_LST < sizeof (SE_STR) - 1 > ::SE_RES > (SE_STR).SE_DEC())
23+
# define XCS(SE_STR) ((::SE_XOR_STR < ::SE_CST_IDX_LST < sizeof (SE_STR) - 1 > ::SE_RES > (SE_STR).SE_DEC()).c_str())
24+
#else
25+
# define XS(SE_STR) (SE_STR)
26+
# define XCS(SE_STR) (SE_STR)
27+
#endif
2328

2429
#define XWS(SE_STR) (::toUnicode(XCS(SE_STR)))
2530
#define XCWS(SE_STR) (::toUnicode(XCS(SE_STR)).c_str())

0 commit comments

Comments
 (0)