mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
a363a7b501
Reviewed By: fromcelticpark Differential Revision: D7803908 fbshipit-source-id: 957e80519c209732b163ece2bccb7c8c36ff8107
37 lines
718 B
C++
37 lines
718 B
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include <functional>
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include <cxxreact/ReactMarker.h>
|
|
#include <jschelpers/JavaScriptCore.h>
|
|
|
|
#ifndef RN_EXPORT
|
|
#define RN_EXPORT __attribute__((visibility("default")))
|
|
#endif
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
namespace JSCNativeHooks {
|
|
|
|
using Hook = JSValueRef(*)(
|
|
JSContextRef ctx,
|
|
JSObjectRef function,
|
|
JSObjectRef thisObject,
|
|
size_t argumentCount,
|
|
const JSValueRef arguments[],
|
|
JSValueRef *exception);
|
|
extern RN_EXPORT Hook loggingHook;
|
|
extern RN_EXPORT Hook nowHook;
|
|
|
|
typedef void(*ConfigurationHook)(JSGlobalContextRef);
|
|
extern RN_EXPORT ConfigurationHook installPerfHooks;
|
|
|
|
}
|
|
|
|
} }
|