Repository navigation
Commit 1d9ed87
Make the default configuration constexpr (#59515)
Summary:
Pull Request resolved: #59515
X-link: react/yoga#2050
Constant-initialize the default configuration and resolve its default logger only when logging. Expose the configuration to constant evaluation on non-Windows platforms; retain the out-of-line Windows getter so DLL consumers continue sharing the library-owned singleton.
Changelog: [Internal]
Reviewed By: christophpurrer
Differential Revision: D127577561
fbshipit-source-id: 017d21f8b797e412649fde0b5829df17f464436c1 parent a8bdbf4 commit 1d9ed87
15 files changed
Lines changed: 59 additions & 27 deletions
File tree
- packages/react-native/ReactCommon/yoga
- test
- yoga/config
- scripts/cxx-api/api-snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
22 | 36 | | |
23 | 37 | | |
24 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| 131 | + | |
130 | 132 | | |
131 | | - | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
| 136 | + | |
134 | 137 | | |
135 | 138 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
72 | 83 | | |
73 | 84 | | |
74 | 85 | | |
| |||
82 | 93 | | |
83 | 94 | | |
84 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
85 | 100 | | |
86 | 101 | | |
87 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6560 | 6560 | | |
6561 | 6561 | | |
6562 | 6562 | | |
6563 | | - | |
6564 | 6563 | | |
6565 | 6564 | | |
6566 | 6565 | | |
| 6566 | + | |
6567 | 6567 | | |
6568 | 6568 | | |
6569 | | - | |
| 6569 | + | |
6570 | 6570 | | |
6571 | 6571 | | |
6572 | 6572 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11010 | 11010 | | |
11011 | 11011 | | |
11012 | 11012 | | |
11013 | | - | |
11014 | 11013 | | |
11015 | 11014 | | |
11016 | 11015 | | |
| 11016 | + | |
11017 | 11017 | | |
11018 | 11018 | | |
11019 | | - | |
| 11019 | + | |
11020 | 11020 | | |
11021 | 11021 | | |
11022 | 11022 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6409 | 6409 | | |
6410 | 6410 | | |
6411 | 6411 | | |
6412 | | - | |
6413 | 6412 | | |
6414 | 6413 | | |
6415 | 6414 | | |
| 6415 | + | |
6416 | 6416 | | |
6417 | 6417 | | |
6418 | | - | |
| 6418 | + | |
6419 | 6419 | | |
6420 | 6420 | | |
6421 | 6421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6409 | 6409 | | |
6410 | 6410 | | |
6411 | 6411 | | |
6412 | | - | |
6413 | 6412 | | |
6414 | 6413 | | |
6415 | 6414 | | |
| 6415 | + | |
6416 | 6416 | | |
6417 | 6417 | | |
6418 | | - | |
| 6418 | + | |
6419 | 6419 | | |
6420 | 6420 | | |
6421 | 6421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8313 | 8313 | | |
8314 | 8314 | | |
8315 | 8315 | | |
8316 | | - | |
8317 | 8316 | | |
8318 | 8317 | | |
8319 | 8318 | | |
| 8319 | + | |
8320 | 8320 | | |
8321 | 8321 | | |
8322 | | - | |
| 8322 | + | |
8323 | 8323 | | |
8324 | 8324 | | |
8325 | 8325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12796 | 12796 | | |
12797 | 12797 | | |
12798 | 12798 | | |
12799 | | - | |
12800 | 12799 | | |
12801 | 12800 | | |
12802 | 12801 | | |
| 12802 | + | |
12803 | 12803 | | |
12804 | 12804 | | |
12805 | | - | |
| 12805 | + | |
12806 | 12806 | | |
12807 | 12807 | | |
12808 | 12808 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8164 | 8164 | | |
8165 | 8165 | | |
8166 | 8166 | | |
8167 | | - | |
8168 | 8167 | | |
8169 | 8168 | | |
8170 | 8169 | | |
| 8170 | + | |
8171 | 8171 | | |
8172 | 8172 | | |
8173 | | - | |
| 8173 | + | |
8174 | 8174 | | |
8175 | 8175 | | |
8176 | 8176 | | |
| |||
0 commit comments