mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-29 09:00:48 -06:00
* Implemented guest-to-host function pointers (WIP) Co-Authored-By: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com> * function: support more types for function pointers * api: ported BlueBlur headers and misc. research * Move over function-pointers changes from options-menu branch. --------- Co-authored-by: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>
21 lines
420 B
C++
21 lines
420 B
C++
#pragma once
|
|
|
|
#include "Hedgehog/Base/Thread/hhHolderBase.h"
|
|
|
|
#define HH_BASE_HOLDER(x) \
|
|
Hedgehog::Base::THolder(x)
|
|
|
|
namespace Hedgehog::Base
|
|
{
|
|
template<typename T, bool ForceSync = true>
|
|
class THolder : public CHolderBase
|
|
{
|
|
public:
|
|
THolder(T* in_pObject) : CHolderBase(in_pObject, ForceSync) {}
|
|
|
|
T* get() const;
|
|
T* operator->() const;
|
|
T* operator*() const;
|
|
};
|
|
}
|