Sack Library Documentation
sack::msg::protocol::MSG_ID Macro
#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)

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!