Parent Directory
|
Revision Log
|
Patch
| revision 1.3 by misto, Thu Jan 2 17:43:54 2003 UTC | revision 1.4 by misto, Sat Jan 4 01:37:44 2003 UTC | |
|---|---|---|
| # | Line 24 | Line 24 |
| 24 | #include "circuit.h" | #include "circuit.h" |
| 25 | ||
| 26 | ||
| 27 | void circuit::set_in( int n, bit_word val ) | |
| 28 | { | |
| 29 | if ( n < nin ) | |
| 30 | in[n] = val; | |
| 31 | else | |
| 32 | throw ex<vmachine>("circuit::set_in: " | |
| 33 | "setting invalid input"); | |
| 34 | } | |
| 35 | bit_word circuit::get_in( int n ) | bit_word circuit::get_in( int n ) |
| 36 | { | { |
| 37 | if ( n < nin ) | if ( n < nin ) |
|
||||||||
| savannah-hackers-public@gnu.org | ViewVC Help |
| Powered by ViewVC 1.1.26 |