From 91fd46f2ba9ed3e503f9197e06bf8f9fb820ea98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=83=B5=E5=B0=B8=E6=B5=A9?= Date: Tue, 29 Aug 2023 17:55:15 +0800 Subject: [PATCH] fix #1489 --- .../Resources/puerts/templates/cppwrapper.tpl.mjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/unity/Assets/core/upm/Editor/Resources/puerts/templates/cppwrapper.tpl.mjs b/unity/Assets/core/upm/Editor/Resources/puerts/templates/cppwrapper.tpl.mjs index 814abf256e..20a2597d29 100644 --- a/unity/Assets/core/upm/Editor/Resources/puerts/templates/cppwrapper.tpl.mjs +++ b/unity/Assets/core/upm/Editor/Resources/puerts/templates/cppwrapper.tpl.mjs @@ -376,7 +376,7 @@ function genFuncWrapper(wrapperInfo) { return t` // ${wrapperInfo.CsName} static bool w_${wrapperInfo.Signature}(void* method, MethodPointer methodPointer, const v8::FunctionCallbackInfo& info, bool checkJSArgument, WrapData* wrapData) { - PLog(LogLevel::Log, "Running w_${wrapperInfo.Signature}"); + // PLog(LogLevel::Log, "Running w_${wrapperInfo.Signature}"); ${CODE_SNIPPETS.declareTypeInfo(wrapperInfo)} @@ -440,7 +440,7 @@ function genBridge(bridgeInfo) { let hasVarArgs = parameterSignatures.length > 0 && parameterSignatures[parameterSignatures.length -1][0] == 'V' return t` static ${CODE_SNIPPETS.SToCPPType(bridgeInfo.ReturnSignature)} b_${bridgeInfo.Signature}(void* target, ${parameterSignatures.map((S, i) => `${CODE_SNIPPETS.SToCPPType(S)} p${i}`).map(s => `${s}, `).join('')}void* method) { - PLog(LogLevel::Log, "Running b_${bridgeInfo.Signature}"); + // PLog(LogLevel::Log, "Running b_${bridgeInfo.Signature}"); ${IF(bridgeInfo.ReturnSignature && !(getSignatureWithoutRefAndPrefix(bridgeInfo.ReturnSignature) in PrimitiveSignatureCppTypeMap))} auto TIret = GetReturnType(method); @@ -512,7 +512,7 @@ function genGetField(fieldWrapperInfo) { function genFieldWrapper(fieldWrapperInfo) { return t` static void ifg_${fieldWrapperInfo.Signature}(const v8::FunctionCallbackInfo& info, void* fieldInfo, size_t offset, void* TIret) { - PLog(LogLevel::Log, "Running ifg_${fieldWrapperInfo.Signature}"); + // PLog(LogLevel::Log, "Running ifg_${fieldWrapperInfo.Signature}"); v8::Isolate* isolate = info.GetIsolate(); v8::Local context = isolate->GetCurrentContext(); @@ -525,7 +525,7 @@ static void ifg_${fieldWrapperInfo.Signature}(const v8::FunctionCallbackInfo& info, void* fieldInfo, size_t offset, void* TIp) { - PLog(LogLevel::Log, "Running ifs_${fieldWrapperInfo.Signature}"); + // PLog(LogLevel::Log, "Running ifs_${fieldWrapperInfo.Signature}"); v8::Isolate* isolate = info.GetIsolate(); v8::Local context = isolate->GetCurrentContext(); @@ -593,4 +593,4 @@ static FieldWrapFuncInfo g_fieldWrapFuncInfos[] = { }; `; -} \ No newline at end of file +}