make nets keep list of updated gates instead of ports

This commit is contained in:
Redo0
2021-05-25 20:22:02 -05:00
parent e92cc50186
commit c62d7340b0
7 changed files with 82 additions and 80 deletions

View File

@@ -77,3 +77,11 @@ function array_remove(array, value)
end
error("element not in array")
end
function array_add(array, value)
for i = 1, #array do
local v = array[i]
if v==value then return end
end
table.insert(array, value)
end