# File lib/childprocess/tools/generator.rb, line 70 def fetch_constant(name, opts) print "#{name}: " src = "int main() {\nprintf(\"%d\", (unsigned int)\#{name});\nreturn 0;\n}\n" output = execute(src, opts) value = Integer(output) @constants[name] = value puts value end