conditional defines in PBP?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2008
    Posts
    29

    Default conditional defines in PBP?

    just curious if there are something similar to the c language conditional preprocessor defines?

    i use different fuses when running the pickit3 debugger versus the pickit3 programmer. i see where the .inc files use them.

    isn't terribly important as i just remark either/or respectively out.

    tia

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default

    I don't know about PM but if you're using MPASM I think it does what you're looking for. Have a look at the help file for MPASM, hlpMPASMAsm.chm, located in you MPASM suite folder. Specifically #define, ifdef and ifndef.

  3. #3
    Join Date
    Jan 2009
    Posts
    22


    Did you find this post helpful? Yes | No

    Default conditional defines in PBP

    Try this:

    DEFINE foobar 1
    .
    .
    .
    @ ifdef foobar
    put stuff here
    @ else
    other stuff
    @ endif

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 12:55
  2. PBP, ASM and LST files
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2010, 13:43
  3. Compiler differences between PBP 2.33 & 2.46
    By nikopolis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2006, 19:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  5. PBP / XP Crash
    By pondindustrial in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th November 2005, 03:16

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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