Projekt

Allgemein

Profil

Feature #367

Von Maximilian Seesslen vor fast 2 Jahren aktualisiert

Biwak classes should be able to indicate errors in debug mode
that may be handled in application layer later.

<pre><code class="cpp">
lDebugAssert( sta == 2, "Could not write (%d)", sta);
</code></pre>

* remove lAssertSta(); it can be done in an single macro, see below.
* implement pretty-print, see below.
* Only use lLog and lLogImpl; others are macros
* Implement lLogImpl in biwak
* Used macros: LEPTO_LOG_PRETTY_PRINT, FLASH_SIZE, LEPTO_LOG_PRETTY_PARAMS, __FILENAME__, Ansi-Codes

So lepto should also set __FILENAME__
<pre>
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__FILENAME__='\"$(subst ${CMAKE_SOURCE_DIR}/,,$(abspath $<))\"'")
</pre>

Zurück