#define MSG_ID(method) ( ( offsetof( struct MyInterface, _##method ) / sizeof( void(*)(void) ) ) + BASE_MESSAGE_ID + MSG_EventUser )
this is a fun thing, in order to use it, undefine MyInterface, and define your own to your library's interface structure name (the tag of the structure)
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|