src/ipcc/ipcc.rb
def vtable
      tok = []
      tok << "const struct {"
      tok << "\t" + "int vt_id;"
      tok << "\t" + "void (*vt_method)(int);"
      tok << "} ipc_#{identifier}_vtable[] = {"
      tok << @methods.map do |method|
        "#{method.method_id}, &#{method.stub_name},\n" 
      end.join("\n")
      tok << '};'
      tok.join("\n") 
    end
# A table to help convert method IDs into method function pointers
A table to help convert method IDs into method function pointers
A table to help convert method IDs into method function pointers
def vtable
      tok = []
      tok << "const struct {"
      tok << "\t" + "int vt_id;"
      tok << "\t" + "void (*vt_method)(int);"
      tok << "} ipc_#{identifier}_vtable[] = {"
      tok << @methods.map do |method|
        "#{method.method_id}, &#{method.stub_name},\n" 
      end.join("\n")
      tok << '};'
      tok.join("\n") 
    end
def vtable tok = [ ] tok << "const struct {" tok << "\t" + "int vt_id;" tok << "\t" + "void (*vt_method)(int);" tok << "} ipc_#{identifier}_vtable[] = {" tok << @methods . map do | method | "#{method.method_id}, &#{method.stub_name},\n" end . join ( "\n" ) tok << '};' tok . join ( "\n" ) end
A table to help convert method IDs into method function pointers
A table to help convert method IDs into method function pointers