Ignore:
Timestamp:
Sep 29, 2007, 12:44:41 PM (17 years ago)
Author:
dai
Message:

静的メソッドのデリゲートに対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/SubOperation/templates/delegate_class.tab

    r340 r342  
    1515            For i = 0 To ELM(simpleDelegates.Count)
    1616                Dim sd = simpleDelegates[i]
    17                 #result# __delegate_dynamicmethod_call(sd.methodPtr, sd.object, #params#)
     17                If sd.hasThisPtr Then
     18                    #result# __delegate_dynamicmethod_call(sd.methodPtr, sd.object, #params#)
     19                Else
     20                    #result# __delegate_staticmethod_call(sd.methodPtr, #params#)
     21                End If
    1822            Next
    1923        'End Sub
     
    3034        End Function
    3135
    32         Static Function _CreateDelegate( object As Object, methodPtr As VoidPtr ) As #name#
     36        Static Function _CreateDynamicDelegate( object As Object, methodPtr As VoidPtr ) As #name#
    3337            Dim dg = New #name#
    3438            dg.simpleDelegates.Add( New System._SimpleDelegate( object, methodPtr ) )
    3539            Return dg
    3640        End Function
     41
     42        Static Function _CreateStaticDelegate( methodPtr As VoidPtr ) As #name#
     43            Dim dg = New #name#
     44            dg.simpleDelegates.Add( New System._SimpleDelegate( methodPtr ) )
     45            Return dg
     46        End Function
    3747    End Class
    3848#namespace_end#
Note: See TracChangeset for help on using the changeset viewer.