The __near keyword specifies that a name is to have 16-bit addressing. For functions, this 16-bit offset is assumed to be from the default code segment, _TEXT; for objects, it is assumed to be from the default data segment, _DATA. Functions declared as __near can be allocated in other segments by declaring them as __based or using the /NT compilation option.
Class-type objects declared as near have:
Near addressing for member data.
Near this pointer.
Function calling determined by the compilation options.
For information about converting near addresses to far and huge, see “Pointer Conversions” in Chapter 3, on topic .
The __near keyword is ignored in 32-bit compilations; however, no error or warning message is generated.¨