Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
Add namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
qubka committed Sep 29, 2024
1 parent 9d41e41 commit 3911f04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,15 @@ namespace {

template<typename T>
void* AllocateMemory(ArgumentList& args) {
void* ptr = malloc(sizeof(T));
void* ptr = std::malloc(sizeof(T));
args.push_back(ptr);
return ptr;
}

template<typename T>
void FreeMemory(void* ptr) {
reinterpret_cast<T*>(ptr)->~T();
free(ptr);
std::free(ptr);
}

void CallbackRefQueueCallback(void* callback) {
Expand Down

0 comments on commit 3911f04

Please sign in to comment.