Skip to content

Commit

Permalink
Introduce macro that disables poisoning JSC symbols
Browse files Browse the repository at this point in the history
Reviewed By: dcaspi

Differential Revision: D6184846

fbshipit-source-id: 755653ceebcbded8fbe165375e8e8e50cf0ecccc
  • Loading branch information
Dan Zimmerman authored and facebook-github-bot committed Nov 2, 2017
1 parent c6a30ab commit 02f7c61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ReactCommon/jschelpers/JavaScriptCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
// mixed usage of regular and custom JSC methods.
// See https://gcc.gnu.org/onlinedocs/gcc-3.3/cpp/Pragmas.html for details
#define jsc_pragma(x) _Pragma(#x)
#ifndef NO_JSC_POISON
#define jsc_poison(methods) jsc_pragma(GCC poison methods)
#else
#define jsc_poison(methods)
#endif

#else

Expand Down

0 comments on commit 02f7c61

Please sign in to comment.