calling the callback functions directly added to the example

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9882 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-08-02 23:18:46 +00:00
commit 08f3b56f9b
2 changed files with 8 additions and 0 deletions

View file

@ -16,3 +16,7 @@ puts "Here is what the C callback function objects look like in Ruby"
puts " ADD = #{Example::ADD}"
puts " SUB = #{Example::SUB}"
puts " MUL = #{Example::MUL}"
puts "Call the functions directly..."
puts " add(a,b) = #{Example.add(a,b)}"
puts " sub(a,b) = #{Example.sub(a,b)}"