C Language and Libraries Help (clang.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.
code_seg
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
  Pragma:   code_seg
 
  Syntax:   #pragma code_seg ( [ "seg_name" [, "seg_class" ] )
 
  Summary:  Specifies a segment where functions are to be
            allocated.
 
  See also: data_seg
 
     The code_seg pragma specifies a segment where functions are to be
     allocated, allowing the use of based allocation without rewriting
     code. Using #pragma code_seg is equivalent to using __based when
     __based is used for allocation. You can specify the class for the
     segment by giving the <seg_class> as a string. Using #pragma
     code_seg without a <seg_name> string resets allocation to
     whatever it was when compilation began.
                                    -♦-