Closed jwakely closed 3 years ago
Do those functions actually need to get called by non-C++ code, or can they just be moved inside the #ifdef __cplusplus block ?
Good catch. Those other functions should be moved within the C++ guard. We're currently getting away with it because no C code is calling them.
--
@jwakely thanks for checking out our project. I suspect you'll find other idiosyncrasies 😄
OK thanks for confirming. I'll send a pull request to move them into the guarded block.
Thanks for the project! I'm considering building a megacommand so thought I'd have a look at the code.
@jwakely should be fixed with ba2510b6
Apologies if I'm misunderstanding something, but it looks like the functions outside the
#ifdef __cplusplus
block inavr/cores/megacommand/memory.h
won't actually compile for C, because they use theselect_bank
macro which is only defined for C++.e.g.
This uses
select_bank(1)
which is not defined unless__cplusplus
is defined.Do those functions actually need to get called by non-C++ code, or can they just be moved inside the
#ifdef __cplusplus
block ?