https://bugs.documentfoundation.org/show_bug.cgi?id=93727
--- Comment #25 from Luv Sharma <[email protected]> --- I have implemented a solution to # problem: look at each line if starts with # store the initial words of the line, if it doesn't meet the date condition compare it with #If or #End, if it matches then pass else syntax error is popped. I have tested the approach and it seems to work fine for the above two codes. However the test [1] gives an error during build, output: [2] Can Someone please help me to figure out what am I doing wrong? [1]: void EnableTest::testWin64() { MacroSnippet myMacro(" #If Win64\n" "Declare PtrSafe Function aht_apiGetOpenFileName Lib \"comdlg32.dll\"" "\n" "#End if\n"); myMacro.Compile(); CPPUNIT_ASSERT_MESSAGE("#if Win64 Declare PtrSafe causes compile error", !myMacro.HasError() ); } [2]: test_append.cxx:71:Assertion Test name: (anonymous namespace):: EnableTest::testWin64 assertion failed - Expression: !myMacro.HasError() - #if Win64 Declare PtrSafe causes a compile error My Submission: https://gerrit.libreoffice.org/c/core/+/162639 -- You are receiving this mail because: You are the assignee for the bug.
