Redeclaring existing enum constant

If you are having trouble between scripts and templates you would have to separate the code to have some headers that are included by the template and some headers that are included by the script.

Follow-up question: I’m not aware of any way that a piece of 010 script/template language could conditionally perform a typedef based on a test for:

  • Running in template context or script context, or, alternatively,
  • Whether or not a template has already been run on the file (perhaps the same as asking whether a Template Results window currently exists.

What I’d like to see (regarding both the present topic and sharing typedefs between templates and scripts) is new feature(s) to promote code sharing between the two contexts.

I believe this could make it a lot easier to write templates and scripts that can “work together” on the same file.