Contents

C++, being a strongly-typed object-orientated language, makes callbacks a tricker subject to deal with than say, in C (non-object orientated) or Javascript (object orientated but NOT strongly typed). This is especially true for embedded systems where you cannot always rely on having newer C++ standard library header files such as at your disposal (it’s a mixed bag, some embedded C++ environments I’ve used do support, others do not).

开源案例:https://github.com/gbmhunter/MCallbacks

Contents