%endfile keyword (SDL script)
The %endfile specifies that code is no longer generated to the active file. Closes the active file and redirects output to the previous file on the output stack.
After specifying a file through the %file keyword, code is generated to that file until the %endfile keyword is processed. %file and %endfile keywords can be nested.
Syntax
%endfile
The following text demonstrates how the %file and %endfile keywords work.
%comment "Description" // no file specified
%file "c:\myfile1.h"
%comment "Description" // comment generated to myfile1
%file "c:\myfile2.h"
%comment "Description" // comment generated to myfile2
%endfile
%comment "Description" // comment generated to myfile1
%endfile
%comment "Description" // no file specified