chore(developer): add initGlobals() method

This commit is contained in:
Dr Mark C. Sinclair 2024-06-07 11:57:51 +01:00
parent 8dde071b89
commit 5492a1670a

View file

@ -37,12 +37,12 @@ class CompilerTest : public testing::Test {
CompilerTest() {}
~CompilerTest() override {}
void SetUp() override {
kmcmp::BeginLine[BEGIN_ANSI] = -1;
kmcmp::BeginLine[BEGIN_UNICODE] = -1;
kmcmp::BeginLine[BEGIN_NEWCONTEXT] = -1;
kmcmp::BeginLine[BEGIN_POSTKEYSTROKE] = -1;
initGlobals();
}
void TearDown() override {
initGlobals();
}
void initGlobals() {
msgproc = NULL;
szText_stub[0] = '\0';
kmcmp::nErrors = 0;