Skip to content

Commit

Permalink
fix #1489
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieyang authored and mingxxming committed Aug 29, 2023
1 parent d9796d6 commit 91fd46f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ function genFuncWrapper(wrapperInfo) {
return t`
// ${wrapperInfo.CsName}
static bool w_${wrapperInfo.Signature}(void* method, MethodPointer methodPointer, const v8::FunctionCallbackInfo<v8::Value>& info, bool checkJSArgument, WrapData* wrapData) {
PLog(LogLevel::Log, "Running w_${wrapperInfo.Signature}");
// PLog(LogLevel::Log, "Running w_${wrapperInfo.Signature}");
${CODE_SNIPPETS.declareTypeInfo(wrapperInfo)}
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -512,7 +512,7 @@ function genGetField(fieldWrapperInfo) {
function genFieldWrapper(fieldWrapperInfo) {
return t`
static void ifg_${fieldWrapperInfo.Signature}(const v8::FunctionCallbackInfo<v8::Value>& 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<v8::Context> context = isolate->GetCurrentContext();
Expand All @@ -525,7 +525,7 @@ static void ifg_${fieldWrapperInfo.Signature}(const v8::FunctionCallbackInfo<v8:
}
static void ifs_${fieldWrapperInfo.Signature}(const v8::FunctionCallbackInfo<v8::Value>& 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<v8::Context> context = isolate->GetCurrentContext();
Expand Down Expand Up @@ -593,4 +593,4 @@ static FieldWrapFuncInfo g_fieldWrapFuncInfos[] = {
};
`;
}
}

0 comments on commit 91fd46f

Please sign in to comment.