3 Replies Latest reply on Feb 8, 2010 7:54 AM by genaganna

    #define

    spectral

      Hi,

      Is there the possibility to use the keyword '#define' like in standard C ?

      Thanks

        • #define
          nou

          yes

            • #define
              spectral

              But when I write something like this :

               

              #define max(a,b) (a>=b?a:b)
              #define min(a,b) (a<=b?a:b)

              The compiler tell me "# not expected" ...

              Do you know why ?

               





                • #define
                  genaganna

                   

                  Originally posted by: viewon01 But when I write something like this :

                   

                  #define max(a,b) (a>=b?a:b) #define min(a,b) (a<=b?a:b)

                   

                  The compiler tell me "# not expected" ...

                   

                  Do you know why ?

                   

                   

                   

                  viewon01,

                                 What error you are getting. I am not getting any such issues. Please past your kernel code here.