Skip to content

Commit

Permalink
[unreal] toCpp for const char*
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieyang committed Mar 22, 2024
1 parent eca8165 commit 14948a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions unreal/Puerts/Source/JsEnv/Public/V8Backend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,12 @@ struct Converter<const char*>
return v8::String::NewFromUtf8(context->GetIsolate(), value, v8::NewStringType::kNormal).ToLocalChecked();
}

static const char* toCpp(v8::Local<v8::Context> context, const v8::Local<v8::Value>& value)
{
// This method is just for compiling. I will never reached here because of class StringHolder.
return nullptr;
}

static bool accept(v8::Local<v8::Context> context, const v8::Local<v8::Value>& value)
{
return value->IsString();
Expand Down

0 comments on commit 14948a5

Please sign in to comment.