mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 12:34:35 +03:00
Improved AsmJit public API to not depend on <windows.h> header
This commit is contained in:
@@ -48,8 +48,8 @@ int main(int argc, char* argv[]) {
|
||||
code.init(codeInfo);
|
||||
code.setLogger(&logger);
|
||||
|
||||
Section* section;
|
||||
Error err = code.newSection(§ion, ".data", SIZE_MAX, 0, 8);
|
||||
Section* dataSection;
|
||||
Error err = code.newSection(&dataSection, ".data", SIZE_MAX, 0, 8);
|
||||
|
||||
if (err) {
|
||||
fail("Failed to create a .data section", err);
|
||||
@@ -82,7 +82,7 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
a.emitEpilog(frame);
|
||||
|
||||
a.section(section);
|
||||
a.section(dataSection);
|
||||
a.bind(data);
|
||||
|
||||
a.embed(dataArray, sizeof(dataArray));
|
||||
|
||||
Reference in New Issue
Block a user