(e4657a741c23c8f48e0e97ae2091dc2d99f4f27d)
#include "fxjs/cjs_globalarrays.h"
#include <iterator>
#include "core/fxcrt/numerics/safe_conversions.h"
#include "v8/include/v8-container.h"
#include "v8/include/v8-isolate.h"
Go to the source code of this file.
◆ GLOBAL_ARRAY
#define GLOBAL_ARRAY |
( |
| rt, |
|
|
| name, |
|
|
| ... ) |
Value: { \
static const wchar_t* const kValues[] = {__VA_ARGS__}; \
v8::Local<v8::Array>
array = (rt)->NewArray(); \
v8::Local<v8::Context>
ctx = (rt)->GetIsolate()->GetCurrentContext(); \
uint32_t i = 0; \
for (
const auto*
value : kValues) { \
++i; \
} \
(rt)->DefineGlobalConst( \
(
name), [](
const v8::FunctionCallbackInfo<v8::Value>&
info) { \
auto* pObj = static_cast<CJS_Object*>( \
CFXJS_Engine::GetBinding(
info.GetIsolate(),
info.This())); \
CJS_Runtime* pCurrentRuntime = pObj->GetRuntime(); \
if (pCurrentRuntime) \
}); \
}
v8::Local< v8::Array > GetConstArray(const WideString &name)
EGLOutputLayerEXT EGLint EGLAttrib value
[3]
EGLImageKHR EGLint * name
Definition at line 15 of file cjs_globalarrays.cpp.