make all non hardware_ libraries foo add C preprocessor definition LIB_FOO=1, and remove bespoke definitions which were all undocumented anyway (#374)

This commit is contained in:
Graham Sanderson
2021-05-04 08:00:17 -05:00
committed by GitHub
parent 6796faf0d5
commit b7da70a53b
46 changed files with 114 additions and 183 deletions

View File

@ -1,4 +1,4 @@
add_library(pico_runtime INTERFACE)
pico_add_impl_library(pico_runtime)
target_sources(pico_runtime INTERFACE
${CMAKE_CURRENT_LIST_DIR}/runtime.c

View File

@ -225,7 +225,7 @@ void __attribute__((noreturn)) panic_unsupported() {
void __attribute__((noreturn)) __printflike(1, 0) panic(const char *fmt, ...) {
puts("\n*** PANIC ***\n");
if (fmt) {
#if PICO_PRINTF_NONE
#if LIB_PICO_PRINTF_NONE
puts(fmt);
#else
va_list args;