# File lib/ruby-vpi/vpi.rb, line 424
424:     def vpi_register_cb aData, &aHandler # :yields: Vpi::S_cb_data
425:       raise ArgumentError, "block must be given" unless block_given?
426: 
427:       key = aHandler.object_id.to_s
428: 
429:       # register the callback with Verilog
430:         aData.user_data = key
431:         aData.cb_rtn = Vlog_relay_ruby
432:         token = vpi_register_cb_old(aData)
433: 
434:       @@callbacks[key] = Callback.new(aHandler, token)
435:       token
436:     end