Bazaar/Protect : updated docs

git-svn-id: svn://ultimatepp.org/upp/trunk@3158 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
micio 2011-02-04 11:03:35 +00:00
parent 46a04d628c
commit 19e408be2d
2 changed files with 3 additions and 5 deletions

View file

@ -896,11 +896,9 @@ string, every 2 chars represent 1 hex byte.&]
[s0; &]
[s0;i150;O0; In your application, enclose parts of code you want
to be encrypted by mean of PROTECT`_START`_FUNC(decrFunc) and
PROTECT`_END`_FUNC macros, and mark function as [* non`-optimizable],
otherwise the optimizing compiler will rearrange the code and
make the system crash : :&]
PROTECT`_END`_FUNC macros :&]
[s0; &]
[s0;l160; [*/ PROTECT`_NO`_OPTIMIZE][/ void MyEncryptedFunction(void)]&]
[s0;l160; [/ void MyEncryptedFunction(void)]&]
[s0;l160; [/ `{]&]
[s0;l160; [/ -|][*/ PROTECT`_START`_FUNC(Decrypt);]&]
[s0;l160;/ &]

View file

@ -28,7 +28,7 @@ we can make cracker`'s live a bit more difficult if we encrypt
somehow also sensitive parts of code with a random key.&]
[s0; This is done by another couple of macros :&]
[s0; &]
[s0;l160; [*/ PROTECT`_NO`_OPTIMIZE][/ void MyObfuscatedFunction(void)]&]
[s0;l160; [/ void MyObfuscatedFunction(void)]&]
[s0;l160; [/ `{]&]
[s0;l160; [/ -|][*/ OBFUSCATE`_START`_FUNC;]&]
[s0;l160;/ &]