defer_codegen

Controls the inlining of functions that are not yet compiled.

Syntax
  #pragma defer_codegen on | off | reset  
Remarks

This setting lets you use inline and auto-inline functions that are called before their definition:

Listing: defer_codegen Example
#pragma defer_codegen on

#pragma auto_inline on



extern void f();



extern void g();



main()



{



    f(); // will be inlined



    g(); // will be inlined



}



inline void f() {}



void g() {}
Note: The compiler requires more memory at compile time if you enable this pragma.

This pragma corresponds to the Deferred Inlining setting in the Language panel. To check this setting, use the __option (defer_codegen), described in Checking Pragma Settings. By default, this pragma is disabled.