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

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
qubka committed Sep 23, 2024
1 parent 85f3fa0 commit 00cd9bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <cpptrace/cpptrace.hpp>
#include <glaze/glaze.hpp>
#include <dyncall/dyncall.h>

MONO_API MonoDelegate* mono_ftnptr_to_delegate(MonoClass* klass, void* ftn);
MONO_API void* mono_delegate_to_ftnptr(MonoDelegate* delegate);
Expand Down
14 changes: 9 additions & 5 deletions src/module.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#include <asmjit/asmjit.h>
#include <dyncall/dyncall.h>
#include <module_export.h>
#include <plugify/function.h>
#include <plugify/language_module.h>
Expand All @@ -28,13 +27,18 @@ extern "C" {
}

template <>
struct std::default_delete<DCCallVM> {
void operator()(DCCallVM* vm) const;
struct std::default_delete<MonoReferenceQueue> {
void operator()(MonoReferenceQueue* queue) const;
};

extern "C" {
typedef struct DCCallVM_ DCCallVM;
typedef struct DCaggr_ DCaggr;
}

template <>
struct std::default_delete<MonoReferenceQueue> {
void operator()(MonoReferenceQueue* queue) const;
struct std::default_delete<DCCallVM> {
void operator()(DCCallVM* vm) const;
};

namespace monolm {
Expand Down

0 comments on commit 00cd9bb

Please sign in to comment.