diff options
author | Ivo Danihelka <ivo@danihelka.net> | 2013-09-17 18:38:34 +0400 |
---|---|---|
committer | Ivo Danihelka <ivo@danihelka.net> | 2013-09-17 18:38:34 +0400 |
commit | f256d6b9699737f90437383ddf36d930d1267813 (patch) | |
tree | db96102b67ddb9fde62da46d320225c4509a32e9 | |
parent | 28ff66b48efbc8fa87a1fc082bbaceb8ae03896b (diff) |
Checked unused inputs.0.1
-rw-r--r-- | gmodule.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gmodule.lua b/gmodule.lua index 20580d0..6639329 100644 --- a/gmodule.lua +++ b/gmodule.lua @@ -78,6 +78,7 @@ function gModule:__init(inputs,outputs) assert(#self.fg:roots() == 1, "expecting only one start") self.innode = self.fg:roots()[1] assert(self.innode.data == innode.data, "expecting the forward innode") + assert(#self.innode.children == #inputs, "an input is unused") self.outnode = outnode self.verbose = false |