18#ifndef __CTHUNK_BASE_H__
19#define __CTHUNK_BASE_H__
26typedef void (*CThunkEntry)(void);
37 Trampoline _trampoline;
46 static CThunkEntry cthunk_alloc(
CThunkBase *cthunk);
51 static void cthunk_free(CThunkEntry cthunk_entry);
54 typedef void (*CthunkFree)(CThunkEntry cthunk_entry);
59 static const CThunkEntry _thunk_table[MBED_CONF_PLATFORM_CTHUNK_COUNT_MAX];
64 static CThunkBase *_thunk_storage[MBED_CONF_PLATFORM_CTHUNK_COUNT_MAX];
69 static CthunkFree _cthunk_free_real;
74 static void cthunk_free_real(CThunkEntry cthunk_entry);
80 static void thunk_entry()
82 _thunk_storage[N]->_trampoline(_thunk_storage[N]);