17 lines
304 B
Plaintext
17 lines
304 B
Plaintext
func TMS_sim_simple(){ localobj nil, detector
|
|
axon detector = new NetCon(&v(0.5), nil)
|
|
detector.threshold = 0
|
|
detector.record("handle()")
|
|
|
|
printf("Init entered\n")
|
|
init()
|
|
printf("Init exited\n")
|
|
run()
|
|
return fired
|
|
}
|
|
|
|
proc handle(){
|
|
fired = 1
|
|
stoprun = 1
|
|
}
|