rtti.inc 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2011 by Jonas Maebe
  4. member of the Free Pascal development team
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. procedure fpc_initialize_array_dynarr_intern(arr: TJObjectArray; normalarrdim: longint); external name 'fpc_initialize_array_dynarr';
  12. procedure fpc_initialize_array_dynarr(arr: TJObjectArray; normalarrdim: longint);compilerproc;
  13. var
  14. i: longint;
  15. begin
  16. if normalarrdim > 0 then
  17. begin
  18. for i:=low(arr) to high(arr) do
  19. fpc_initialize_array_dynarr_intern(TJObjectArray(arr[i]),normalarrdim-1);
  20. end
  21. else
  22. begin
  23. for i:=low(arr) to high(arr) do
  24. arr[i]:=nil;
  25. end;
  26. end;