Fix release build

This commit is contained in:
Markus Gans 2021-06-19 23:25:36 +02:00
parent 9931f75a51
commit 7170fc846c
1 changed files with 9 additions and 10 deletions

View File

@ -210,7 +210,7 @@ void tcapString (const std::string& name, const char cap_string[])
//---------------------------------------------------------------------- //----------------------------------------------------------------------
#if DEBUG #if DEBUG
void debug() void showDebug()
{ {
auto& debug_data = finalcut::FTermDebugData::getInstance(); auto& debug_data = finalcut::FTermDebugData::getInstance();
const auto& ab_s = debug_data.getAnswerbackString(); const auto& ab_s = debug_data.getAnswerbackString();
@ -238,14 +238,14 @@ void debug()
std::cout << "`------------------- debug -------------------\r\n"; std::cout << "`------------------- debug -------------------\r\n";
} }
#else #else
void debug (const finalcut::FApplication&) void showDebug()
{ {
// FINAL CUT was compiled without debug option // FINAL CUT was compiled without debug option
} }
#endif #endif
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void booleans() void showBooleans()
{ {
std::cout << "\r\n[Booleans]\r\n"; std::cout << "\r\n[Booleans]\r\n";
tcapBoolean ( "background_color_erase" tcapBoolean ( "background_color_erase"
@ -273,7 +273,7 @@ void booleans()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void numeric() void showNumeric()
{ {
std::cout << "\r\n[Numeric]\r\n"; std::cout << "\r\n[Numeric]\r\n";
tcapNumeric ("max_color" tcapNumeric ("max_color"
@ -287,7 +287,7 @@ void numeric()
} }
//---------------------------------------------------------------------- //----------------------------------------------------------------------
void string() void showString()
{ {
std::cout << "\r\n[String]\r\n"; std::cout << "\r\n[String]\r\n";
const auto& tcap_strings = finalcut::FTermcap::strings; const auto& tcap_strings = finalcut::FTermcap::strings;
@ -325,10 +325,9 @@ int main (int argc, char* argv[])
std::cout << "--------\r\nFTermcap\r\n--------\r\n\n"; std::cout << "--------\r\nFTermcap\r\n--------\r\n\n";
std::cout << "Terminal: " << finalcut::FTerm::getTermType() << "\r\n"; std::cout << "Terminal: " << finalcut::FTerm::getTermType() << "\r\n";
debug(); showDebug();
showBooleans();
booleans(); showNumeric();
numeric(); showString();
string();
return 0; return 0;
} }