objc1h.inc 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2009 by the Free Pascal development team
  4. This unit contains Objective-C compatibility stuff.
  5. Additionally this file defines the interface of TObject, providing
  6. their basic implementation in the corresponding objpas.inc file.
  7. WARNING: IF YOU CHANGE SOME OF THESE INTERNAL RECORDS, MAKE SURE
  8. TO MODIFY THE COMPILER AND OBJPAS.INC ACCORDINGLY, OTHERWISE
  9. THIS WILL LEAD TO CRASHES IN THE RESULTING COMPILER AND/OR RTL.
  10. IN PARTICULAR, THE IMPLEMENTATION PART OF THIS INCLUDE FILE,
  11. OBJPAS.INC, USES SOME HARDCODED RECORD MEMBER OFFSETS.
  12. See the file COPYING.FPC, included in this distribution,
  13. for details about the copyright.
  14. This program is distributed in the hope that it will be useful,
  15. but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17. **********************************************************************}
  18. {*****************************************************************************
  19. Basic Types/constants
  20. *****************************************************************************}
  21. type
  22. { make sel assignment-incompatible with other typed pointers }
  23. _fpc_objc_sel_type = record end;
  24. SEL = ^_fpc_objc_sel_type;