Assembly Language Help (alang.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Select Default PROC Visibility
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Syntax: OPTION PROC:visibility
See also: PROC
Description:
Sets the default procedure visibilty. The <visibility> parameter can
be PRIVATE, PUBLIC, or EXPORT. If you do not use this option, the
the default visibility will be PUBLIC.
With OPTION M510, the default <visibility> with no defined language type
is PRIVATE. If you specify a language type in a .MODEL or OPTION LANGUAGE
statement, the default <visibility> is PUBLIC.
Without a language type, MASM 5.1 makes procedures private to the
module. By default, MASM 6.1 makes procedures public. You can explicitly
change the default visibility to private with either OPTION M510,
OPTION PROC:PRIVATE, or OPTION PROC:EXPORT.
To selectively enable MASM 6.1 behavior, place the directive
OPTION PROC:PUBLIC after OPTION M510. You can override the default
by adding the PUBLIC or PRIVATE keyword to selected procedures.
-♦-