dearimgui / dear_bindings

C header (and language binding metadata) generator for Dear ImGui
MIT License
221 stars 12 forks source link

Auto-generated markers in every output file #22

Closed ocornut closed 1 year ago

ocornut commented 1 year ago

In c6558176 I added a more visible header to the .cpp files:

// THIS FILE HAS BEEN AUTO-GENERATED BY THE 'DEAR BINDINGS' GENERATOR.
// **DO NOT EDIT DIRECTLY**
// https://github.com/dearimgui/dear_bindings

But was not sure how to add it to the main .h (going via the DOM writer).

I suppose it would make sense it will was added on all output files, either hardcoded in the code either via the template stuff.

ShironekoBen commented 1 year ago

The new template header stuff lets us put in common headers for all files, so I've put the warning message in there now.

ocornut commented 1 year ago

Looking great, thank you!