#pragma ishome (C++ only)

Category

Object code control

Purpose

Informs the compiler that the specified class's home module is the current compilation unit.

The home module is where items, such as the virtual function table, are stored. If an item is referenced from outside of the compilation unit, it will not be generated outside its home. This can reduce the amount of code generated for the application.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-#--pragma--ishome--(--class_name--)-------------------------><

Parameters

class_name
The name of the class whose home will be the current compilation unit.

Usage

A warning will be produced if there is a #pragma ishome without a matching #pragma hashome.

Examples

See #pragma hashome (C++ only)

Related information