[webkit-dev] [Conditional=] vs. #if in IDL files

Darin Adler darin at apple.com
Sat Mar 7 08:55:54 PST 2015


Why do we have [Conditional=] in our IDL files? Perhaps because some ports lacked a way to do #if in the past? Should we use #if or [Conditional]? See for example, HTMLMediaElement.idl, which has a mix of both styles. It’s pretty ugly how the #if look in the IDL files, but even worse is a seemingly random mix of both #if and [Conditional].

— Darin


More information about the webkit-dev mailing list