File: test_main.cpp

package info (click to toggle)
intrusive-shared-ptr 1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 412 kB
  • sloc: cpp: 2,852; ansic: 173; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 353 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#define DOCTEST_CONFIG_IMPLEMENT

#include <doctest/doctest.h>

#if ISPTR_USE_PYTHON
    #include <Python.h>
#endif

int main(int argc, char** argv)
{
#if ISPTR_USE_PYTHON
    Py_Initialize();
#endif
    int ret = doctest::Context(argc, argv).run();
#if ISPTR_USE_PYTHON
    if (Py_FinalizeEx() < 0) {
        return 120;
    }
#endif
    return ret;
}