​ ​ ​ ​ Definition of #Define in the manual
Results 1 to 6 of 6

Thread: Definition of #Define in the manual

  1. #1
    Senior Member
    Join Date
    Oct 2012
    Location
    USA
    Posts
    472

    Default Definition of #Define in the manual

    Code recently posted by hippy included:

    Code:
    #Define Negative(wvar) wvar >= $8000
    #Define Positive(wvar) wvar <  $8000
    
    #Define Negate(wexpr)  wexpr ^ $FFFF + 1
    Maybe I missed it but I didn't find any information regarding this use of #Define in Manual 1 or 2, fortunately I did find it in the online help here. Does the manual need to be corrected?

  2. #2
    Senior Member
    Join Date
    Jan 1970
    Location
    Colorado USA
    Posts
    3,212

    Smile Editing incentive!

    There are many things not in manual - it's good you tried the online ;-0 Years ago I was using a different product and the company offered a free item to people who submitted legitimate edits to their manual - that's one way to get people to do proofreading and editing - I got a free item :-)
    Last edited by premelec; 22-06-2018 at 18:43. Reason: User incentives to edit...

  3. #3
    Senior Member
    Join Date
    Jun 2010
    Location
    Australia
    Posts
    122

    Default

    I didn't find any information regarding this use of #Define in Manual 1 or 2
    #define is described in Manual 2 under the index entry "Pre-Processor and Directives"
    A section named "#DEFINE and #MACRO" starts on page 11
    “If you think you know it all, you are not listening.”
    — Marsha Johnson Evans U.S. Navy (Retired)

  4. #4
    Senior Member
    Join Date
    Jan 1970
    Location
    Perth, Western Australia
    Posts
    4,466

    Default

    Quote Originally Posted by Flenser View Post
    #define is described in Manual 2 under the index entry "Pre-Processor and Directives"
    A section named "#DEFINE and #MACRO" starts on page 11
    You have to admit that the description in Manual 2 is pretty superficial and does not cover the capabilities of Define shown in the on-line version.

  5. #5
    Senior Member
    Join Date
    Oct 2012
    Location
    USA
    Posts
    472

    Default

    Quote Originally Posted by Flenser View Post
    #define is described in Manual 2 under the index entry "Pre-Processor and Directives"
    A section named "#DEFINE and #MACRO" starts on page 11
    If I'm wrong I'm wrong, but I'm not seeing that section showing #Define used in the same way as in the program snippet I posted?

  6. #6
    Senior Member
    Join Date
    Jun 2010
    Location
    Australia
    Posts
    122

    Default

    inglwoodpete,

    I see what you mean. The on-line version of the doco gives a more detailed description of how the #define works while the pdf doco is basically just a set of examples of the different ways to use #define without much in the way of description.
    “If you think you know it all, you are not listening.”
    — Marsha Johnson Evans U.S. Navy (Retired)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •