/[smarc]/smarc/src/vmachine/circuit.h
ViewVC logotype

Diff of /smarc/src/vmachine/circuit.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by misto, Sun Nov 17 15:29:53 2002 UTC revision 1.2 by misto, Sun Nov 17 19:20:06 2002 UTC
# Line 30  class circuit { Line 30  class circuit {
30                                  throw ex<circuit>("circuit::set_out: "                                  throw ex<circuit>("circuit::set_out: "
31                                          "setting invalid output");                                          "setting invalid output");
32                  }                  }
33                  void link( int n, unsigned long *adr ) {                  void link( int n, circuit c, int m ) {
34                          if ( n < nout )                          if ( n < nout || m < c.nin )
35                                  out[n] = adr;                                  out[n] = &(c.in[m]);
36                          else                          else
37                                  throw ex<circuit>("circuit::link: "                                  throw ex<circuit>("circuit::link: "
38                                          "linking to invalid output");                                          "linking to invalid output");

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26