Skip to content

Commit d8901d1

Browse files
author
Rafael Stahl
committed
memory: put FlushICache in hl namespace
1 parent 7a690e0 commit d8901d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hacklib/src/Memory_UNIX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void hl::PageCommit(void* p, size_t n, hl::Protection protection)
9494
}
9595

9696

97-
void FlushICache(void* p, size_t n)
97+
void hl::FlushICache(void* p, size_t n)
9898
{
9999
__builtin___clear_cache((char*)p, (char*)p + n);
100100
}

src/hacklib/src/Memory_WIN32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void hl::PageCommit(void* p, size_t n, hl::Protection protection)
124124
}
125125

126126

127-
void FlushICache(void* p, size_t n)
127+
void hl::FlushICache(void* p, size_t n)
128128
{
129129
HL_APICHECK(FlushInstructionCache(GetCurrentProcess(), p, n));
130130
}

0 commit comments

Comments
 (0)