aradi / fypp

Python powered Fortran preprocessor
http://fypp.readthedocs.io
BSD 2-Clause "Simplified" License
180 stars 30 forks source link

Enhancement request : detect repeated #:def with the same signature #40

Open bhourahine opened 4 months ago

bhourahine commented 4 months ago

If there is an inadvertent copy-paste mistake in the code to be pre-processed, it would be useful to get a warning/error for repeated definitions of the same macro, either within the same file or the same scope.

A follow up, would be a new keyword to redefine an existing macro (again with warning/error., if the macro has not been previously defined).