Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4833

SDK • Re: troubletrouble defining a macro to replace a zero argument fn call: micros()

$
0
0
One can cover the BS, but it still stinks. :)

"#undef micros" would do nothing meaningful in this case, because micros() is a function (dealt by compiler), not a preprocessor definition.

If you want to replace that function, you have to rewrite it (with or without 'inline').
'Inline' is just an optimization for speed (at a cost of size).

Or just use a text editor and use the magic Find&Replace ... or a fancy code refactoring in a useful IDE (that means not Arduino IDE).

Statistics: Posted by gmx — Sat Oct 05, 2024 2:30 am



Viewing all articles
Browse latest Browse all 4833

Trending Articles