Pārlūkot izejas kodu

* adapted for use with DOS

florian 26 gadi atpakaļ
vecāks
revīzija
c57f9f07a7
1 mainītis faili ar 8 papildinājumiem un 2 dzēšanām
  1. 8 2
      tests/testrtti.pp

+ 8 - 2
tests/testrtti.pp

@@ -1,6 +1,12 @@
 Program testrtti;
 
-Uses Typinfo,classes;
+{$M+}
+
+Uses
+{$ifdef go32v2}
+dpmiexcp,
+{$endif}
+Typinfo;
 
 Const TypeNames : Array [TTYpeKind] of string[15] = 
                     ('Unknown','Integer','Char','Enumeration',
@@ -13,7 +19,7 @@ Const OrdinalTypes = [tkInteger,tkChar,tkENumeration,tkbool];
 Type
       TMyEnum = (meFirst,meSecond,meThird);
 
-Type TMyTestObject = Class(TPersistent)
+Type TMyTestObject = Class
        Private
        FBoolean  : Boolean;
        FByte     : Byte;