Cleanup: remove dead files from rapid iteration

- Delete suppress_tests.h (unused, replaced by javelin_overrides/unit_test.h)
- Delete patches/ dir (orphaned, sed/python used instead)
- Delete empty .gitmodules (submodule removed, javelin fetched via west)
- Simplify Kconfig: remove unused flags (HEAP_SIZE, USER_DICT_SIZE,
  ORTHOGRAPHY_CACHE, CONSOLE, TRIGGER — not wired to code yet)
- Add .gitignore for __pycache__
This commit is contained in:
afiqzudinhadi 2026-06-23 00:29:06 +08:00
parent 4e7b4e062f
commit 3e4b5a56b0
6 changed files with 1 additions and 95 deletions

View file

@ -1,37 +0,0 @@
// Force-included before all Javelin sources to suppress test compilation.
// Redefine TEST macros to produce no function body, avoiding compilation
// of test code that references RUN_TESTS-only APIs.
#ifndef JAVELIN_SUPPRESS_TESTS_H
#define JAVELIN_SUPPRESS_TESTS_H
// Override the test macros from unit_test.h.
// Original (without RUN_TESTS):
// TEST_BEGIN → namespace UnitTestNNN { static void Test() {
// TEST_END → } }
//
// Our override makes Test() an empty function, then opens a dead namespace
// that swallows the original test body code until TEST_END closes it.
// The swallowed code goes into a struct with an unused template, so it
// never gets instantiated or compiled.
#undef TEST_BEGIN__
#undef TEST_BEGIN_
#undef TEST_BEGIN
#undef TEST_END
#define TEST_BEGIN__(text, file, line) \
namespace UnitTest##line { \
static inline void Test() {} \
template<bool=false> struct Unused { \
static void Swallowed() {
#define TEST_END \
} \
}; \
}
#define TEST_BEGIN_(desc, file, line) TEST_BEGIN__(desc, file, line)
#define TEST_BEGIN(desc) TEST_BEGIN_(desc, __FILE__, __LINE__)
#endif