element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Chat (English) Using eagle3d inc files in test mode
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 178 subscribers
  • Views 422 views
  • Users 0 members are here
Related

Using eagle3d inc files in test mode

Former Member
Former Member over 13 years ago

This is something that I cant get working.

Maybe I am following a wrong approach.

 

If I render this simple piece of code always the 100n component is rendered

whatever I use in the the declare.

 

#declare inc_testmode = on;

 

union{

#ifndef(inc_testmode)

        object {CAP_DIS_WIMA_25_025_046_075("10n",)}

#else

        object {CAP_DIS_WIMA_25_025_046_075("100n",)}

#end

 

Why is this so be course I cant find anything in de doc.

 

 

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 13 years ago

    In article <k5uumq$a9u$1@cheetah.cadsoft.de>, info@oldtimetech.nl

    says...

     

    This is something that I cant get working.

    Maybe I am following a wrong approach.

     

    If I render this simple piece of code always the 100n component is rendered

     

    I'm not familiar yet with ULP but standard practice for preprocessor

    directives say that ifdef ifndef etc will be true if the label is

    defined (ie thats what its there for)

     

    i.e. ifndef does not relate to a value - just the existance of the label

     

    You should find this to be the case in any language.

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 13 years ago

    In article <k5uumq$a9u$1@cheetah.cadsoft.de>, info@oldtimetech.nl

    says...

     

    This is something that I cant get working.

    Maybe I am following a wrong approach.

     

    If I render this simple piece of code always the 100n component is rendered

     

    I'm not familiar yet with ULP but standard practice for preprocessor

    directives say that ifdef ifndef etc will be true if the label is

    defined (ie thats what its there for)

     

    i.e. ifndef does not relate to a value - just the existance of the label

     

    You should find this to be the case in any language.

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Former Member
    Former Member over 13 years ago in reply to Former Member

    It doesn’t matter if I declare inc_testmode, always the else statement is

    executed.

    maybe I should remove all de ifdef;s and replace them by simple if

    statements.

     

    "fred"  schreef in bericht

    news:MPG.2aee1b533f6acc07989692@news.virginmedia.com...

     

    In article <k5uumq$a9u$1@cheetah.cadsoft.de>, info@oldtimetech.nl

    says...

     

    This is something that I cant get working.

    Maybe I am following a wrong approach.

     

    If I render this simple piece of code always the 100n component is

    rendered

     

    I'm not familiar yet with ULP but standard practice for preprocessor

    directives say that ifdef ifndef etc will be true if the label is

    defined (ie thats what its there for)

     

    i.e. ifndef does not relate to a value - just the existance of the label

     

    You should find this to be the case in any language.

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to Former Member

    In article <k65pmo$92r$1@cheetah.cadsoft.de>, info@oldtimetech.nl

    says...

    It doesn?t matter if I declare inc_testmode, always the else statement is

    executed.

    maybe I should remove all de ifdefs and replace them by simple if

    statements.

     

     

     

    You dont normally want to just swap #ifdef's with #if's because they

    mean different things (if you understand that then by all means do of

    course)

     

    I havnt used POVray for around 20 years so I'm not sure of the correct

    syntax you can use.

    There should be a .chm file though -

     

    My guess is this is a simple case of the token being defined in an

    include somewhere (the "= on" is irrelevant to the #ifndef)

     

    change it to

    #declare mytoken;

     

    #ifndef (mytoken)

       do(10)

    #else

      do(100)

    #endif

     

    or whatever the correct sytax is - and swap it to see if it changes

    if it does - you have a duplicate  - probably in an include file

    if those are in scope in povray now

     

     

     

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube