Skip to content

Commit

Permalink
Merge pull request #324 from altmp/ALTV-344
Browse files Browse the repository at this point in the history
ALTV-344 Expose V8 platform
  • Loading branch information
OlegTrofimov authored Sep 9, 2024
2 parents 2be8afe + bd0025e commit 977b1e9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,15 @@ ALTV_JS_EXPORT const char* GetSDKHash()
{
return ALT_SDK_VERSION;
}

#ifndef ALTV_JS_SHARED
namespace alt
{
v8::Platform* GetV8Platform();
}

v8::Platform* alt::GetV8Platform()
{
return CV8ScriptRuntime::Instance().GetPlatform();
}
#endif

0 comments on commit 977b1e9

Please sign in to comment.