Method: AutoC::Module::Header#write
- Defined in:
- lib/autoc/code.rb
#write(stream) ⇒ Object
180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/autoc/code.rb', line 180 def write(stream) stream << %$ /* AUTOMATICALLY GENERATED HEADER FILE. DO NOT MODIFY. */ #ifndef #{@guard_macro} #define #{@guard_macro} $ AutoC.priority_sort(entities).each {|e| e.write_intf(stream)} stream << %$ #endif $ stream << "\n" # DigitalMars C in strict ANSI (-A) mode complains about absent empty line at the very end so let's make it happy end |