lingjf / h2unit

Light-weight (as light as hydrogen) unit test framework for C/C++, since 2012
Apache License 2.0
10 stars 6 forks source link

Merge h2unit.cpp into single h2unit.h file #6

Closed lingjf closed 4 years ago

lingjf commented 11 years ago

Currently end-user should include two files: h2unit.cpp and h2unit.h. If there two files can be merged into one file , it will be more simple to use.

C++ class can be wrote in header file, static member method and static variable can be used to implement global instance. I have wrote a test, it works.

The difficult is how to implement memory leak detection for C source file. A work around is that consider C source file as C++ source file and compile with C++ compiler.

lingjf commented 4 years ago

fix in v4.0

lingjf commented 4 years ago

fix in v4.0