diff options
author | MITSUNARI Shigeo <[email protected]> | 2018-08-28 18:29:23 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2018-08-28 18:29:23 +0900 |
commit | 348b270988e04c1c95adb9c5263b342de8a1cde9 (patch) | |
tree | 43143589bcc1e918e2841f3968a642e3e971ff77 | |
parent | f34f6ed5ef0cb3812bba1bcebb7782e628d42af2 (diff) | |
download | xbyak-348b270988e04c1c95adb9c5263b342de8a1cde9.tar.gz xbyak-348b270988e04c1c95adb9c5263b342de8a1cde9.zip |
fix typo of doc
-rw-r--r-- | readme.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -347,13 +347,13 @@ c.ready(); // mode = Read/Write/Exec ### Read/Exec mode Xbyak set Read/Write/Exec mode to memory to run jit code. -If you want to use Read/Exec mode for security, then specify DontUseProtect for `CodeGenerator` and +If you want to use Read/Exec mode for security, then specify `DontSetProtectRWE` for `CodeGenerator` and call `setProtectModeRE()` after generating jit code. ``` struct Code : Xbyak::CodeGenerator { Code() - : Xbyak::CodeGenerator(4096, Xbyak::DontUseProtect) + : Xbyak::CodeGenerator(4096, Xbyak::DontSetProtectRWE) { mov(eax, 123); ret(); |