• 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: environment variables during compile time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: environment variables during compile time


  • Subject: Re: environment variables during compile time
  • From: Vyacheslav Karamov <email@hidden>
  • Date: Wed, 13 Jul 2011 15:38:58 +0300

man getenv


13-Jul-11 15:11, Jankoen de Haan пишет:
Hi All

What would be the way to use environment variable during compile time in source code. I explicitly dont want to get the content of the vars during runtime but during compile time as if the vars are preprocessor constants.

For example:

int main(int argc, char *argv[])
{
    NSLog( @"testcase %s", $PRODUCT_NAME );
}

Is something like this possible ?

Thanks,
Jankoen de Haan
Utrecht
_______________________________________________ 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

 _______________________________________________
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

  • Follow-Ups:
    • Re: environment variables during compile time
      • From: Marco S Hyman <email@hidden>
References: 
 >environment variables during compile time (From: Jankoen de Haan <email@hidden>)

  • Prev by Date: Re: environment variables during compile time
  • Next by Date: Re: environment variables during compile time
  • Previous by thread: Re: environment variables during compile time
  • Next by thread: Re: environment variables during compile time
  • Index(es):
    • Date
    • Thread