mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 15:59:35 +02:00
* adapted for use with DOS
This commit is contained in:
parent
baa08b8bab
commit
c57f9f07a7
@ -1,6 +1,12 @@
|
|||||||
Program testrtti;
|
Program testrtti;
|
||||||
|
|
||||||
Uses Typinfo,classes;
|
{$M+}
|
||||||
|
|
||||||
|
Uses
|
||||||
|
{$ifdef go32v2}
|
||||||
|
dpmiexcp,
|
||||||
|
{$endif}
|
||||||
|
Typinfo;
|
||||||
|
|
||||||
Const TypeNames : Array [TTYpeKind] of string[15] =
|
Const TypeNames : Array [TTYpeKind] of string[15] =
|
||||||
('Unknown','Integer','Char','Enumeration',
|
('Unknown','Integer','Char','Enumeration',
|
||||||
@ -13,7 +19,7 @@ Const OrdinalTypes = [tkInteger,tkChar,tkENumeration,tkbool];
|
|||||||
Type
|
Type
|
||||||
TMyEnum = (meFirst,meSecond,meThird);
|
TMyEnum = (meFirst,meSecond,meThird);
|
||||||
|
|
||||||
Type TMyTestObject = Class(TPersistent)
|
Type TMyTestObject = Class
|
||||||
Private
|
Private
|
||||||
FBoolean : Boolean;
|
FBoolean : Boolean;
|
||||||
FByte : Byte;
|
FByte : Byte;
|
||||||
|
Loading…
Reference in New Issue
Block a user