Skip to content

Commit

Permalink
Export YGInteropSetLogger method (#960)
Browse files Browse the repository at this point in the history
Summary:
When building and using C # libraries,
EntryPointNotFoundException thrown from YGInteropSetLogger.

so, I added YOGA_EXPORT on YGInteropSetLogger.

Pull Request resolved: #960

Reviewed By: yungsters

Differential Revision: D40027238

Pulled By: yungsters

fbshipit-source-id: 6af584a16e66a31c91374a1bb64434888762e3c8
  • Loading branch information
KimDaeWook authored and facebook-github-bot committed Oct 4, 2022
1 parent 7f854ec commit d16e918
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion csharp/Yoga/YGInterop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static int unmanagedLogger(
return result;
}

void YGInteropSetLogger(YGInteropLogger managedLogger) {
YOGA_EXPORT void YGInteropSetLogger(YGInteropLogger managedLogger) {
gManagedLogger = managedLogger;
YGConfigSetLogger(YGConfigGetDefault(), &unmanagedLogger);
}
5 changes: 5 additions & 0 deletions yoga/Yoga.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4336,6 +4336,11 @@ YOGA_EXPORT void YGConfigSetUseWebDefaults(
config->useWebDefaults = enabled;
}

YOGA_EXPORT bool YGConfigGetUseLegacyStretchBehaviour(
const YGConfigRef config) {
return config->useLegacyStretchBehaviour;
}

YOGA_EXPORT void YGConfigSetUseLegacyStretchBehaviour(
const YGConfigRef config,
const bool useLegacyStretchBehaviour) {
Expand Down
1 change: 1 addition & 0 deletions yoga/Yoga.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ void YGConfigSetShouldDiffLayoutWithoutLegacyStretchBehaviour(
// 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
// this behaviour.
WIN_EXPORT bool YGConfigGetUseLegacyStretchBehaviour(YGConfigRef config);
WIN_EXPORT void YGConfigSetUseLegacyStretchBehaviour(
YGConfigRef config,
bool useLegacyStretchBehaviour);
Expand Down

0 comments on commit d16e918

Please sign in to comment.