source: EcnlProtoTool/trunk/mrbgems/mruby-socket/src/gen.rb@ 279

Last change on this file since 279 was 279, checked in by coas-nagasima, 7 years ago

ファイルを追加、更新。

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby
File size: 256 bytes
Line 
1#!/usr/bin/env ruby
2
3Dir.chdir(File.dirname($0))
4
5f = File.open("const.cstub", "w")
6
7IO.readlines("const.def").each { |name|
8 name.sub(/^#.*/, "")
9 name.strip!
10 next if name.empty?
11
12 f.write <<CODE
13#ifdef #{name}
14 define_const(#{name});
15#endif
16CODE
17}
Note: See TracBrowser for help on using the repository browser.