|
@@ -34396,7 +34396,7 @@ begin
|
|
|
' null,',
|
|
|
' function () {',
|
|
|
' var $r = this.$rtti;',
|
|
|
- ' $r.addMethod("GetItem", 1, [], rtl.longint);',
|
|
|
+ ' $r.addMethod("GetItem", 1, [], 2, rtl.longint);',
|
|
|
' $r.addMethod("SetItem", 0, [["Value", rtl.longint]]);',
|
|
|
' $r.addProperty("Item", 3, rtl.longint, "GetItem", "SetItem", 2);',
|
|
|
' }',
|
|
@@ -34462,9 +34462,9 @@ begin
|
|
|
' function () {',
|
|
|
' this.$kind = "com";',
|
|
|
' var $r = this.$rtti;',
|
|
|
- ' $r.addMethod("QueryInterface", 1, [["iid", $mod.$rtti["TGuid"], 2], ["obj", null, 4]], rtl.longint);',
|
|
|
- ' $r.addMethod("_AddRef", 1, [], rtl.longint);',
|
|
|
- ' $r.addMethod("_Release", 1, [], rtl.longint);',
|
|
|
+ ' $r.addMethod("QueryInterface", 1, [["iid", $mod.$rtti["TGuid"], 2], ["obj", null, 4]], 2, rtl.longint);',
|
|
|
+ ' $r.addMethod("_AddRef", 1, [], 2, rtl.longint);',
|
|
|
+ ' $r.addMethod("_Release", 1, [], 2, rtl.longint);',
|
|
|
' }',
|
|
|
');',
|
|
|
'rtl.createInterface(',
|
|
@@ -34475,7 +34475,7 @@ begin
|
|
|
' this.IUnknown,',
|
|
|
' function () {',
|
|
|
' var $r = this.$rtti;',
|
|
|
- ' $r.addMethod("GetItem", 1, [], rtl.longint);',
|
|
|
+ ' $r.addMethod("GetItem", 1, [], 2, rtl.longint);',
|
|
|
' $r.addMethod("SetItem", 0, [["Value", rtl.longint]]);',
|
|
|
' $r.addProperty("Item", 3, rtl.longint, "GetItem", "SetItem", 2);',
|
|
|
' }',
|
|
@@ -34605,7 +34605,7 @@ begin
|
|
|
'end;',
|
|
|
'']);
|
|
|
ConvertUnit;
|
|
|
- CheckSource('TestRTTI_ExternalClass',
|
|
|
+ CheckSource('TestRTTI_Unit',
|
|
|
LinesToStr([ // statements
|
|
|
'rtl.createInterface(',
|
|
|
' this,',
|
|
@@ -34615,8 +34615,8 @@ begin
|
|
|
' pas.system.IUnknown,',
|
|
|
' function () {',
|
|
|
' var $r = this.$rtti;',
|
|
|
- ' $r.addMethod("Swoop", 1, [], pas.unit2.$rtti["TWordArray"]);',
|
|
|
- ' $r.addMethod("Glide", 1, [], pas.unit2.$rtti["TArray<System.Word>"]);',
|
|
|
+ ' $r.addMethod("Swoop", 1, [], 2, pas.unit2.$rtti["TWordArray"]);',
|
|
|
+ ' $r.addMethod("Glide", 1, [], 2, pas.unit2.$rtti["TArray<System.Word>"]);',
|
|
|
' }',
|
|
|
');',
|
|
|
'this.Fly = function () {',
|