block_of_code: Optimize nops

This commit is contained in:
MerryMage 2016-08-26 13:46:19 +01:00
parent 0102951bdd
commit 9901ed0f51
2 changed files with 40 additions and 5 deletions

View file

@ -80,11 +80,7 @@ public:
}
void int3() { db(0xCC); }
void nop(size_t size = 0) {
for (size_t i = 0; i < size; i++) {
db(0x90);
}
}
void nop(size_t size = 0);
void SetCodePtr(CodePtr ptr);
void EnsurePatchLocationSize(CodePtr begin, size_t size);