Skip to content

Commit f2f2683

Browse files
committed
Refactored to use the latest asmjit (snake_case)
1 parent 3bce8a4 commit f2f2683

File tree

10 files changed

+570
-571
lines changed

10 files changed

+570
-571
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ int main(int argc, char* argv[]) {
8282
"vaddpd zmm0, zmm1, [rax + 128]\n");
8383

8484
// Error handling (use asmjit::ErrorHandler for more robust error handling).
85-
if (err) {
85+
if (err != Error::kOk) {
8686
printf("ERROR: %08x (%s)\n", err, DebugUtils::errorAsString(err));
8787
return 1;
8888
}
8989

9090
// Now you can print the code, which is stored in the first section (.text).
91-
CodeBuffer& buffer = code.sectionById(0)->buffer();
91+
CodeBuffer& buffer = code.section_by_id(0)->buffer();
9292
dumpCode(buffer.data(), buffer.size());
9393

9494
return 0;

0 commit comments

Comments
 (0)