On Thu, 18 Jul 2019 at 14:20, Nicholas Nethercote <n.netherc...@gmail.com> wrote:
> > I just landed the patches in bug 1564724. As a result, static prefs are no > longer defined in modules/libpref/init/StaticPrefList.h. They are now > defined in modules/libpref/init/StaticPrefList.yaml, from which a > StaticPrefList.h file is generated. The format is explained in a comment at > the top of StaticPrefList.yaml. > [...] > The change will also allow some larger benefits in the immediate future. > - StaticPrefList.h (which is generated from StaticPrefList.yaml) will be > able to be split into pieces, resulting in much less recompilation each > time a single static pref is changed (bug 1563139 > <https://bugzilla.mozilla.org/show_bug.cgi?id=1563139>). > This change just landed. StaticPrefs.h no longer exists, and the generated header files all have the form StaticPrefs_foo.h, where 'foo' is the pref group, which comes from the part of the pref name before the first dot. For example, if you want to access the "apz.allow_zooming" pref via StaticPrefs::apz_allow_zooming() you will need to include StaticPrefs_apz.h. Nick _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform