Created
December 10, 2009 14:58
-
-
Save frsyuki/253369 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef MP_UTILIZE_H__ | |
#define MP_UTILIZE_H__ | |
#define MP_UTILIZE \ | |
struct mp_util; \ | |
friend struct mp_util | |
#define MP_UTIL_DEF(name) \ | |
struct name::mp_util : public name | |
#define MP_UTIL_IMPL(name) \ | |
name::mp_util | |
#define MP_UTIL \ | |
(*static_cast<mp_util*>(this)) | |
#define MP_UTIL_FROM(self) \ | |
(*static_cast<mp_util*>(self)) | |
#endif /* mp/utilze.h */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment