Skip to content

Commit 3debf52

Browse files
Upgrade C++ standard from 17 to 20
Co-authored-by: Copilot <[email protected]>
1 parent 7b951ac commit 3debf52

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ project(JsRuntimeHost)
6060

6161
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
6262

63-
set(CMAKE_CXX_STANDARD 17)
63+
set(CMAKE_CXX_STANDARD 20)
6464
set(CMAKE_CXX_STANDARD_REQUIRED ON)
6565

6666
# --------------------------------------------------

Core/AppRuntime/Source/AppRuntime_QuickJS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace Babylon
3535
Napi::Env env = Napi::Attach(context);
3636

3737
// Install microtask processing as a post-tick callback
38-
SetPostTickCallback([runtime, context]() {
38+
SetPostTickCallback([runtime]() {
3939
JSContext* pending_ctx;
4040
while (JS_ExecutePendingJob(runtime, &pending_ctx) > 0)
4141
{

0 commit comments

Comments
 (0)