require_prototypes

Controls whether or not the compiler should expect function prototypes.

Syntax

#pragma require_prototypes on | off | reset

Targets
All platforms.
Remarks

This pragma only affects non-static functions.

If you enable this pragma, the compiler generates an error if you use a function that does not have a prototype. This pragma helps you prevent errors that happen when you use a function before you define it or refer to it.

This pragma corresponds to the Require Function Prototypes setting . To check this setting, use __option (require_prototypes), described in Checking Settings. The default setting is processor-specific.