Julian GroßFix copyright headersae7d2293 years agoHistory
25 lines · 652 B · C++
RawDownload
////  ScriptContext.h//  libraries/script-engine/src////  Created by Heather Anderson on 12/5/21.//  Copyright 2021 Vircadia contributors.//  Copyright 2023 Overte e.V.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html//  SPDX-License-Identifier: Apache-2.0// #include "ScriptContext.h" #include "Scriptable.h" ScriptContextGuard::ScriptContextGuard(ScriptContext* context) {    _oldContext = Scriptable::context();    Scriptable::setContext(context);} ScriptContextGuard::~ScriptContextGuard() {    Scriptable::setContext(_oldContext);}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t