ocaml-sys / config.ml

conditional compilation via attributes for OCaml
Other
27 stars 4 forks source link

Support @@cfg within module & signatures #3

Closed leostera closed 6 months ago

leostera commented 8 months ago

Right now we can't use @cfg in elements defined within modules and signatures.

The expected behavior is that @cfg can be used in places like this:

module A : sig
 val a : unit -> unit [@@cfg disable = true]
end =
 let a () = () [@@cfg disable = true]
end

and interface files:

module A : sig
 val a : unit -> unit [@@cfg disable = true]
end
KFoxder commented 6 months ago

@leostera you can assign this to me. I am going to put something out for it.

KFoxder commented 6 months ago

@leostera this can be closed now I think