summaryrefslogtreecommitdiff
path: root/src/unit_tests.hh
blob: 161626945abdb76cee38d2bd47a1b43e1df30615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef unit_tests_hh_INCLUDED
#define unit_tests_hh_INCLUDED

namespace Kakoune
{

struct UnitTest
{
    UnitTest(void (*func)()) : func(func), next(list) { list = this; }
    void (*func)();
    const UnitTest* next;

    static void run_all_tests();
    static UnitTest* list;
};

}

#endif // unit_tests_hh_INCLUDED