On Thu, Jan 4, 2018 at 4:35 PM, Gabriele Svelto <gsve...@mozilla.com> wrote:
> On 03/01/18 23:30, Ben Kelly wrote: > > Could we use our existing idl/webidl/ipdl for this? It would be nice > > not to have to maintain another code generator in the tree if possible. > > > AFAIK there is no way in IDL to declare an enum. Constants can be > declared but one needs to manually assign them a value which makes it > unsuitable for this task. Also there's no way to attach other metadata > to the declaration (such as a mandatory comment). > We can't have a comment explaining "please add any new constants in sequential order in the following list"? Or make your "generator" create the idl which then creates the js/c++? _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform