Thread: another mystifying C syntax issue - DEBUG macro - #define

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Registered User
    Join Date
    Feb 2012
    Posts
    44
    I've googled C syntax for near a month now. It's very, very cryptic. Remember, I've programmed assembly for 30+ years as well as a half dozen other languages. Nothing remotely compares to C syntax in obtuseness. It's simply hit or miss. I've written assemblers for microprocessors and even commercial software.

    I was simply using what others have used (this specific Debug macro). I am now using the D one above. I had the misfortune of calling D, DBG, and that caused some severe compiler error in objbase.h whereby it wouldn't compile the program at all.

    I did test this and even looked at the generated code to make sure it was doing what I expected it to. However, for the macro expansion, there is one extra PUSH statement over the native _tprintf that I haven't figured out why it's there (yet).

    Also, where did the _T part go in your above macro result?
    Last edited by jlewand; 02-12-2012 at 01:42 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How overload a define macro?
    By 6tr6tr in forum C++ Programming
    Replies: 19
    Last Post: 04-24-2008, 03:52 PM
  2. Is it possible to set type for define macro?
    By 6tr6tr in forum C++ Programming
    Replies: 5
    Last Post: 04-16-2008, 01:32 PM
  3. Newbie question about the define macro
    By lawina in forum C++ Programming
    Replies: 11
    Last Post: 05-18-2006, 06:47 PM
  4. Tricky #define macro...
    By willkoh in forum Windows Programming
    Replies: 4
    Last Post: 04-06-2005, 12:09 PM
  5. macro (#define) question
    By Darrok in forum C++ Programming
    Replies: 30
    Last Post: 12-20-2001, 05:01 PM