Full featured C ++ Assert dialog box?

I am looking for a nice, full-featured assert C ++ macro for VisualStudio. With features such as the ability to ignore the "once" or "always" argument to be able to break down exactly where the macro is called (and not inside the macro), and get a stack trace.

Before I should sit and write, I decided that I would ask if anyone knew of any available there.

Any suggestions?

Thanks!

+3
source share
5 answers

assert. ( ), , - .

+8

, DDJ, , , , , . , DLL.

http://www.ddj.com/architect/184406106

, , .

+1

OpenOffice , . , , , , ?

0

_ ASSERTE , , .

_ASSERTE , . , :

_ASSERTE(bufLen > 0 && "bufLen needs to be greater than 0");
0

PPK_ASSERT. , Windows , , .

#include <pempek_assert.h>

int main()
{
  float min = 0.0f;
  float max = 1.0f;
  float v = 2.0f;
  PPK_ASSERT(v > min && v < max, "invalid value: %f, must be between %f and %f", v, min, max);

  return 0;
}
0

Source: https://habr.com/ru/post/1710293/


All Articles