| 379 | #define checkP(...) checkP_(__FILE__, __LINE__, __VA_ARGS__) |
| 380 | template<size_t size> |
| 381 | void checkP_(const char* file, int line, const char (&code)[size], const CheckPOptions& options = make_default_obj()) { |
| 382 | SimpleTokenizer2 tokenizer(settings2, *this, code, options.cpp ? "test.cpp" : "test.c"); |
| 383 | |
| 384 | // Tokenizer.. |
| 385 | ASSERT_LOC(tokenizer.simplifyTokens1(""), file, line); |
| 386 | |
| 387 | CheckOther check; |
| 388 | runChecks(check, tokenizer, *this); |
| 389 | } |
| 390 | |
| 391 | template<size_t size> |
| 392 | void checkInterlockedDecrement(const char (&code)[size]) { |
nothing calls this directly
no test coverage detected