lib: update the callback_monkey example to the latest FFI spec
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 28 Nov 2013 20:20:21 +0000 (15:20 -0500)
committerJean Privat <jean@pryen.org>
Mon, 17 Feb 2014 18:56:35 +0000 (13:56 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

examples/callback_monkey.nit

index 074df9f..8b04b94 100644 (file)
@@ -69,7 +69,7 @@ extern Monkey `{ CMonkey * `}
        
        # Object method which will get a callback in wokeUp method, defined in MonkeyActionCallable interface
        # Must be defined as Nit/C method because of C call inside
-       fun wokeUpAction( toCall: MonkeyActionCallable, message: Object ) is extern import MonkeyActionCallable::wokeUp `{
+       fun wokeUpAction( toCall: MonkeyActionCallable, message: Object ) is extern import MonkeyActionCallable.wokeUp `{
 
                // Allocating memory to keep reference of received parameters :
                // - Object receiver