Results 1 to 2 of 2

Thread: Compiletime vs run time

  1. #1
    Join Date
    Dec 2011
    Posts
    1

    Compiletime vs run time

    How do I modified into runtime since #ifdef I am using is currently in compile time?


    #define abc 1

    #ifdef abc
    static function a(){
    }
    #else
    static function b(){
    }
    #endif

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Compiletime vs run time

    I think that if you use #if then you can use most of the "usual operators" however I can't seem to find much formal documentation on this.
    Code:
    #define TEST2
    
    #if defined TEST || defined TEST2
    cout << "made it here" << endl;
    #endif
    
    #if defined TEST && defined TEST2
    cout << "if this works its broken" << endl;
    #endif

Similar Threads

  1. Lenovo Thinkpad Edge 14’s slow boot time and shut down time
    By $kRITIKa$ in forum Portable Devices
    Replies: 7
    Last Post: 12-06-2011, 10:24 PM
  2. Replies: 3
    Last Post: 21-12-2010, 01:22 PM
  3. Replies: 3
    Last Post: 10-07-2009, 11:40 PM
  4. Replies: 1
    Last Post: 31-12-2008, 01:08 PM
  5. Replies: 4
    Last Post: 30-10-2008, 09:56 PM

Tags for this Thread

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
  •  
Page generated in 1,714,095,158.62599 seconds with 16 queries