Skip to content

Commit

Permalink
format check fail
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Oct 24, 2024
1 parent d6440da commit 17acd1f
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions unreal/Puerts/Source/JsEnv/Public/JSClassRegister.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,23 @@ namespace PUERTS_NAMESPACE
class CFunctionInfo;
struct JSENV_API JSFunctionInfo
{
JSFunctionInfo()
: Name(nullptr), Callback(nullptr)
JSFunctionInfo() : Name(nullptr), Callback(nullptr)
{
}

JSFunctionInfo(const char* InName, pesapi_callback InCallback, void* InData = nullptr, const CFunctionInfo* InReflectionInfo = nullptr )

JSFunctionInfo(
const char* InName, pesapi_callback InCallback, void* InData = nullptr, const CFunctionInfo* InReflectionInfo = nullptr)
: Name(InName), Callback(InCallback), Data(InData), ReflectionInfo(InReflectionInfo)
{
}

template<class CallbackType>
JSFunctionInfo(const char* InName, CallbackType InCallback, void* InData = nullptr, const CFunctionInfo* InReflectionInfo = nullptr )

template <class CallbackType>
JSFunctionInfo(
const char* InName, CallbackType InCallback, void* InData = nullptr, const CFunctionInfo* InReflectionInfo = nullptr)
: Name(InName), Callback(reinterpret_cast<pesapi_callback>(InCallback)), Data(InData), ReflectionInfo(InReflectionInfo)
{
}

const char* Name;
pesapi_callback Callback;
void* Data = nullptr;
Expand All @@ -64,22 +65,27 @@ struct JSENV_API JSFunctionInfo

struct JSENV_API JSPropertyInfo
{
JSPropertyInfo()
: Name(nullptr), Getter(nullptr), Setter(nullptr)
JSPropertyInfo() : Name(nullptr), Getter(nullptr), Setter(nullptr)
{
}

JSPropertyInfo(const char* InName, pesapi_callback InGetter, pesapi_callback InSetter, void* InGetterData = nullptr, void* InSetterData = nullptr)
: Name(InName), Getter(InGetter), Setter(InSetter), GetterData(InGetterData), SetterData(InSetterData)

JSPropertyInfo(const char* InName, pesapi_callback InGetter, pesapi_callback InSetter, void* InGetterData = nullptr,
void* InSetterData = nullptr)
: Name(InName), Getter(InGetter), Setter(InSetter), GetterData(InGetterData), SetterData(InSetterData)
{
}

template<class CallbackType>
JSPropertyInfo(const char* InName, CallbackType InGetter, CallbackType InSetter, void* InGetterData = nullptr, void* InSetterData = nullptr)
: Name(InName), Getter(reinterpret_cast<pesapi_callback>(InGetter)), Setter(reinterpret_cast<pesapi_callback>(InSetter)), GetterData(InGetterData), SetterData(InSetterData)

template <class CallbackType>
JSPropertyInfo(const char* InName, CallbackType InGetter, CallbackType InSetter, void* InGetterData = nullptr,
void* InSetterData = nullptr)
: Name(InName)
, Getter(reinterpret_cast<pesapi_callback>(InGetter))
, Setter(reinterpret_cast<pesapi_callback>(InSetter))
, GetterData(InGetterData)
, SetterData(InSetterData)
{
}

const char* Name;
pesapi_callback Getter;
pesapi_callback Setter;
Expand Down

0 comments on commit 17acd1f

Please sign in to comment.