dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: MACROS overload

  1. #1
    Join Date
    Jun 2019
    Posts
    1

    MACROS overload

    hi all
    Code:
    #define S(...) printf("%s %s","AT","OK")
    #S S1
    #define S1(x) printf("%s %s",(x),"OK")  //у нас получается не сдвиг идёт как предложил Croessmah, а отсичение
    #S1 S2
    #define S2(x,y) printf("%s %s",(x),(y))
     
    S();  //print AT OK
    S("TT");  //print TT OK
    S("TT","KK"); //print TT KK
    how to make something like this ?

  2. #2
    Join Date
    Nov 2018
    Posts
    11

    Re: MACROS overload


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)