#REFACTORING by exept
authorClaus Gittinger <cg@exept.de>
Sun, 08 Sep 2019 16:01:05 +0200
changeset 24756 fca38270ff24
parent 24755 9ceec9c7e546
child 24757 87fa84aace9c
#REFACTORING by exept class: ExternalFunctionCallback class changed: #callbackFor:returnType:argumentTypes: (send #argumentCount instead of #numArgs)
ExternalFunctionCallback.st
--- a/ExternalFunctionCallback.st	Sun Sep 08 15:59:57 2019 +0200
+++ b/ExternalFunctionCallback.st	Sun Sep 08 16:01:05 2019 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 2007 by eXept Software AG
 	      All Rights Reserved
@@ -405,14 +407,14 @@
 
 callbackFor:aBlock returnType:returnType argumentTypes:argumentTypes
     "generate a callback for the ErrorCallbackProc signature:
-	ErrorCallbackProc(HWND hWnd, int nErrID, LPTSTR lpErrorText)
+        ErrorCallbackProc(HWND hWnd, int nErrID, LPTSTR lpErrorText)
      which, can be given to an external API call and which invokes the
      three arg block when clled.
      Do not forget to eventually release the callback to avoid a memory leak."
 
     |cb|
 
-    self assert:(aBlock numArgs == argumentTypes size).
+    self assert:(aBlock argumentCount == argumentTypes size).
 
     cb := ExternalFunctionCallback new.
     cb returnType:returnType argumentTypes:argumentTypes.
@@ -1005,3 +1007,4 @@
 version_CVS
     ^ '$Header$'
 ! !
+