General thunking class to allow C-style callbacks to C++ class members - including optional parameters.
Diff: CThunk.h
- Revision:
- 2:3197c4a8ba85
- Parent:
- 1:53a00c956d82
- Child:
- 3:51023d181133
--- a/CThunk.h Fri Aug 15 12:50:49 2014 +0000 +++ b/CThunk.h Fri Aug 15 16:03:48 2014 +0000 @@ -119,7 +119,7 @@ inline void init(T &instance, CCallback callback, void* context) { -#ifdef __thumb2__ +#ifdef __CORTEX_M3 m_thunk.code = 0x8003E89F; #else #error "TODO: add support for non-cortex-m3 trampoline, too"