make sim queues use c objs
This commit is contained in:
@@ -12,6 +12,7 @@ ffi.cdef [[
|
||||
int** port_net_state_num;
|
||||
int** port_net_in_queue;
|
||||
struct Net** port_nets_c;
|
||||
int objref;
|
||||
};
|
||||
]]
|
||||
|
||||
@@ -40,6 +41,7 @@ function Gate.new(objref, definition)
|
||||
gate.c.port_net_state_num = gate.port_net_state_num
|
||||
gate.c.port_net_in_queue = gate.port_net_in_queue
|
||||
gate.c.port_nets_c = gate.port_nets_c
|
||||
gate.c.objref = gate.objref
|
||||
|
||||
return gate
|
||||
end
|
||||
@@ -62,11 +64,6 @@ function Gate.setportstate(gate, index, state)
|
||||
end
|
||||
end
|
||||
|
||||
-- Logic Critical
|
||||
function Gate.logic(gate)
|
||||
gate.logic(gate)
|
||||
end
|
||||
|
||||
function Gate.preinit(gate)
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user