How to write a c++ assert macro with a varying number of informational arguments?

后端 未结 5 1529
情深已故
情深已故 2021-01-14 15:09

I am trying to write a macro dbgassert similar to the standard assert. In addition to what assert does, I want to dbgassert

5条回答
  •  深忆病人
    2021-01-14 15:55

    You have to write the contents of the function __assert - if you specified it's extern you should attach the file that contains the function's definition to the compilation process. If you don't know how to write a multiple-file program, I can't really help you.

提交回复
热议问题