• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: finding macro definition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding macro definition


  • Subject: Re: finding macro definition
  • From: "Wesley Smith" <email@hidden>
  • Date: Thu, 19 Jul 2007 01:05:12 +0200

Thanks,
I finally figured it out.  It was in a prefix header so no matter how
high I put the include, it couldn't go above the definition in the
prefix.

best,
wes

On 7/19/07, William H. Schultz <email@hidden> wrote:
Wes,

Try doing a project-wide search for the macro (i.e. Find menu->Find
selected text in project).  If that doesn't work, the header file
might not have been added to your project.  In this case, use
spotlight.  :D  More specifically, do a spotlight search for "define
__MACRO_THING__".  I just tried this out on the closest macro I could
find at my end, and I found eight copies of the source file, and six
e-mails from subversion commit logs.


------------------------------- Hank Schultz Cedrus Corporation http://www.cedrus.com/


On Jul 18, 2007, at 2:26 PM, Wesley Smith wrote:

> Hi,
> I have some code that checks for a macro and causes a precompilation
> error if it exists.  The problem I'm having is that I can't for the
> life of me find out where this macro is coming from.  Is there a way
> to ask where it was defined?
>
> for examples
>
>
> #ifdef __MACRO_THING__
>    #error "error MACRO_THING defined before header file included"
> #endif
>
>
> thanks,
> wes
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40cedrus.com
>
> This email sent to email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >finding macro definition (From: "Wesley Smith" <email@hidden>)

  • Prev by Date: Re: replacement for CW compare?
  • Next by Date: Re: Warning: warning weak symbol references not set in output with…
  • Previous by thread: finding macro definition
  • Next by thread: Problem using static floats
  • Index(es):
    • Date
    • Thread