Commit 54f2f3d
authored
Fix gn (KhronosGroup#6131)
* no static initializers
Chromium bans static initializers of class objects.
Wrap the std::array static variables with a function
that returns a reference to them.
This is option 2 to remove static initializers, at
https://chromium.googlesource.com/chromium/src.git/+/HEAD/docs/static_initializers.md#Removing-Static-Initializers
Also, lookup methods update a pointer-to-const pointer.
* Fix GN build for ggt.py modules1 parent cc1e6c5 commit 54f2f3d
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments