Skip to content

Commit

Permalink
Make isCustomJSCWrapperSet and setCustomJSCWrapper visible when using…
Browse files Browse the repository at this point in the history
… arc focus --dylib

Reviewed By: skotchvail, javache

Differential Revision: D5148545

fbshipit-source-id: db6e595325d5275b5d5fdce4c4047965dc97125e
  • Loading branch information
dinhvh authored and facebook-github-bot committed May 31, 2017
1 parent 578227d commit b61999c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions ReactCommon/jschelpers/JSCWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#define JSC_IMPORT extern
#endif

#ifndef RN_EXPORT
#define RN_EXPORT __attribute__((visibility("default")))
#endif

namespace facebook {
namespace react {
class IInspector;
Expand Down Expand Up @@ -49,7 +53,7 @@ JSC_IMPORT void FBJSContextStartGCTimers(JSContextRef);
*
* Version number indicating that bytecode is not supported by this runtime.
*/
__attribute__((visibility("default"))) extern const int32_t JSNoBytecodeFileFormatVersion;
RN_EXPORT extern const int32_t JSNoBytecodeFileFormatVersion;

namespace facebook {
namespace react {
Expand Down Expand Up @@ -148,12 +152,12 @@ bool isCustomJSCPtr(T *x) {
return (uintptr_t)x & 0x1;
}

bool isCustomJSCWrapperSet();
void setCustomJSCWrapper(const JSCWrapper* wrapper);
RN_EXPORT bool isCustomJSCWrapperSet();
RN_EXPORT void setCustomJSCWrapper(const JSCWrapper* wrapper);

// This will return a single value for the whole life of the process.
__attribute__((visibility("default"))) const JSCWrapper *systemJSCWrapper();
__attribute__((visibility("default"))) const JSCWrapper *customJSCWrapper();
RN_EXPORT const JSCWrapper *systemJSCWrapper();
RN_EXPORT const JSCWrapper *customJSCWrapper();

} }

Expand Down

0 comments on commit b61999c

Please sign in to comment.