• Paul Fultz II's avatar
    Use ifdef instead of comment for the auto-generated method declarations for... · 8e4d622f
    Paul Fultz II authored
    Use ifdef instead of comment for the auto-generated method declarations for type erased classes (#1138)
    
    It seems the formatting of comments are unreadable for larger methods, so instead just generate a struct with the methods in the interface and add a comment if its optional. It wraps this in #ifdef TYPE_ERASED_DECLARATION(assuming this would never be defined) instead of #if 0, so most editors can still provide syntax highlighting(although I think vscode with clangd will still gray it out unfortunately).
    8e4d622f
marker.hpp 7.96 KB