Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    preprocessor directives [SOLVED]

    SDK Help
    0
    5
    514
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 18/05/2016 at 05:49, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   r15-r17 
      Platform:   Windows  ; Mac  ;  
      Language(s) :     C++  ;

      ---------
      Is there a list with preprocessor directives / options?
      I like to distinct between mac and pc.

      For example:

        
      #if MAC  
          #include "mac.h"  
      #else  
          _<_o:p_>_#include "pc.h"  
      #endif  
      
      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 18/05/2016 at 06:49, xxxxxxxx wrote:

        e.g.

        #ifdef __APPLE__

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 18/05/2016 at 06:52, xxxxxxxx wrote:

          Howdy,

          Look in the header "ge_sys_math.h". You'll find those OS platform defines. 😉

          Adios,
          Cactus Dan

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            On 19/05/2016 at 01:43, xxxxxxxx wrote:

            Hello,

            a list of common compiler macros can be found online.

            Best wishes,
            Sebastian

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              On 19/05/2016 at 02:24, xxxxxxxx wrote:

              Great info and support, thanks all.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post