Show: Object Pascal C++
Display Preferences

__typeinfo

From Appmethod Topics
Jump to: navigation, search

Go Up to sysmac.h Index

The __typeinfo macro returns the RTTI of a class that descends from TObject.

TTypeInfo *typeInfo = __typeinfo(TMyObject); // TMyObject inherits TObject
Note: You can also use the __delphirtti (which is a keyword extension) to get the RTTI associated with a class.

For examples of __typeinfo, see:

See Also

Personal tools
In other languages