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 - value value data type modifier http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 value               Value data type modifier
------------------------------------------------------------------------------
 Syntax
   <func>
   param value <datatype> <var>

 Arguments
   <func> is a function or procedure declaration.
   <datatype> is the data type of the parameter.
   <var> is the symbol name of the parameter variable.

 Description
   The value data type modifier is used in parameter declarations to
   indicate that a value is to be copied to the stack, as opposed to placing
   the address of a memory object there. Passing a variable to a function by
   value results in the inability of the called function to modify the value
   of the original variable in the code that issued the function call.

 Example
   #define EXAMPLE_KEYWORD
   #include example.hdr

   proc Test static
   param value ptr( char ) pString
   ? *pString
   endproc
   
   proc Test_value
   Test( &"Hello world" )
   endproc

   proc main
   Test_value()
   endproc

See Also: const param

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