Export YGInteropSetLogger method (#960)
Summary: When building and using C # libraries, EntryPointNotFoundException thrown from YGInteropSetLogger. so, I added YOGA_EXPORT on YGInteropSetLogger. Pull Request resolved: https://github.com/facebook/yoga/pull/960 Reviewed By: yungsters Differential Revision: D40027238 Pulled By: yungsters fbshipit-source-id: 6af584a16e66a31c91374a1bb64434888762e3c8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7f854ec13e
commit
d16e918c52
@@ -24,7 +24,7 @@ static int unmanagedLogger(
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void YGInteropSetLogger(YGInteropLogger managedLogger) {
|
YOGA_EXPORT void YGInteropSetLogger(YGInteropLogger managedLogger) {
|
||||||
gManagedLogger = managedLogger;
|
gManagedLogger = managedLogger;
|
||||||
YGConfigSetLogger(YGConfigGetDefault(), &unmanagedLogger);
|
YGConfigSetLogger(YGConfigGetDefault(), &unmanagedLogger);
|
||||||
}
|
}
|
||||||
|
@@ -4336,6 +4336,11 @@ YOGA_EXPORT void YGConfigSetUseWebDefaults(
|
|||||||
config->useWebDefaults = enabled;
|
config->useWebDefaults = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
YOGA_EXPORT bool YGConfigGetUseLegacyStretchBehaviour(
|
||||||
|
const YGConfigRef config) {
|
||||||
|
return config->useLegacyStretchBehaviour;
|
||||||
|
}
|
||||||
|
|
||||||
YOGA_EXPORT void YGConfigSetUseLegacyStretchBehaviour(
|
YOGA_EXPORT void YGConfigSetUseLegacyStretchBehaviour(
|
||||||
const YGConfigRef config,
|
const YGConfigRef config,
|
||||||
const bool useLegacyStretchBehaviour) {
|
const bool useLegacyStretchBehaviour) {
|
||||||
|
@@ -318,6 +318,7 @@ void YGConfigSetShouldDiffLayoutWithoutLegacyStretchBehaviour(
|
|||||||
// resulted in implicit behaviour similar to align-self: stretch; Because this
|
// resulted in implicit behaviour similar to align-self: stretch; Because this
|
||||||
// was such a long-standing bug we must allow legacy users to switch back to
|
// was such a long-standing bug we must allow legacy users to switch back to
|
||||||
// this behaviour.
|
// this behaviour.
|
||||||
|
WIN_EXPORT bool YGConfigGetUseLegacyStretchBehaviour(YGConfigRef config);
|
||||||
WIN_EXPORT void YGConfigSetUseLegacyStretchBehaviour(
|
WIN_EXPORT void YGConfigSetUseLegacyStretchBehaviour(
|
||||||
YGConfigRef config,
|
YGConfigRef config,
|
||||||
bool useLegacyStretchBehaviour);
|
bool useLegacyStretchBehaviour);
|
||||||
|
Reference in New Issue
Block a user