mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 07:31:20 +02:00
* pas2jni: TClass helper must be generated only for the system unit.
git-svn-id: trunk@40462 -
This commit is contained in:
parent
78b3b8ee4e
commit
1cc3c199c8
@ -2075,7 +2075,7 @@ begin
|
||||
end;
|
||||
|
||||
// Class ref helpers
|
||||
if FClasses.IndexOf('system.TClass', nil) >= 0 then begin
|
||||
if (u.Name = 'system') and (FClasses.IndexOf('system.TClass', nil) >= 0) then begin
|
||||
Fjs.WriteLn('native static long GetClassRef(int index);');
|
||||
AddNativeMethod(u, '_GetClassRef', 'GetClassRef', '(I)J');
|
||||
Fjs.WriteLn('static TClass GetTClass(int index) { TClass c = new TClass(null); c._pasobj=GetClassRef(index); return c; }');
|
||||
|
Loading…
Reference in New Issue
Block a user