jiuyiUniapp/service/node_modules/react-native/ReactCommon/jsinspector-modern/ExecutionContextManager.cpp

20 lines
500 B
C++
Raw Normal View History

2025-02-13 09:59:20 +08:00
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ExecutionContextManager.h"
#include <cassert>
namespace facebook::react::jsinspector_modern {
int32_t ExecutionContextManager::allocateExecutionContextId() {
assert(nextExecutionContextId_ != INT32_MAX);
return nextExecutionContextId_++;
}
} // namespace facebook::react::jsinspector_modern