doc/api/ruby/classes/VPI.src/M000034.html in ruby-vpi-20.0.0 vs doc/api/ruby/classes/VPI.src/M000034.html in ruby-vpi-21.0.0

- old
+ new

@@ -3,24 +3,17 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>always (VPI)</title> + <title>vpi_register_cb (VPI)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/ruby-vpi/core/scheduler.rb, line 230</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">always</span> <span class="ruby-operator">*</span><span class="ruby-identifier">aBlockArgs</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">aBlock</span> - <span class="ruby-identifier">process</span> <span class="ruby-keyword kw">do</span> - <span class="ruby-identifier">loop</span> <span class="ruby-keyword kw">do</span> - <span class="ruby-identifier">startTime</span> = <span class="ruby-constant">VPI</span>.<span class="ruby-identifier">current_time</span> - <span class="ruby-identifier">aBlock</span>.<span class="ruby-identifier">call</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">aBlockArgs</span>) - <span class="ruby-identifier">finishTime</span> = <span class="ruby-constant">VPI</span>.<span class="ruby-identifier">current_time</span> - - <span class="ruby-constant">VPI</span>.<span class="ruby-identifier">advance_time</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">finishTime</span> <span class="ruby-operator">&gt;</span> <span class="ruby-identifier">startTime</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> + <pre><span class="ruby-comment cmt"># File lib/ruby-vpi/core/callback.rb, line 123</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">vpi_register_cb</span> <span class="ruby-identifier">aData</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">aHandler</span> <span class="ruby-comment cmt"># :yields: VPI::S_cb_data</span> + <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;block must be given&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block_given?</span> + <span class="ruby-constant">RubyVPI</span><span class="ruby-operator">::</span><span class="ruby-constant">Callback</span>.<span class="ruby-identifier">attach</span>(<span class="ruby-identifier">aData</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">aHandler</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file