Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - #pragma codeseg code segment name control http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 #pragma CODESEG     Code segment name control
------------------------------------------------------------------------------
 Syntax
   #pragma CODESEG <segmentname>

 Arguments
   <segmentname> is the name of the module's code segment.

 Description
   The #pragma CODESEG directive allows to define a specific name
   for the code segment into which the generated code of the current module
   should go. This pragma overrides the default code segment name, which
   consists of the module base name with _TEXT appended (e. g. MAIN_TEXT
   for a module named main.prg).

   By giving several modules the same code segment name, the #pragma CODESEG
   directive can be used to combine the code of all those modules in one
   segment.

 Example
   #define EXAMPLE_DIRECTIV
   #include example.hdr

   #pragma CODESEG MYLIB_TEXT // change code segment's name
   
   proc Test_857
   ? "Hello world"
   endproc

   proc main
   Test_857()
   endproc

See Also: -Nt

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson