All pastes #924865 Raw Edit

Anonymous

public c v1 · immutable
·published 2008-03-01 19:54 UTC
rendered paste body
#define ptr(from,to) \_asm mov eax, from \_asm mov to,  eax class test {public:	void func() {		printf("HA !");	}};void lala() {	printf("lala");}int main(int argc, char* argv[]) {	void (*x)();	void (test::* lala)() = test::func;		ptr(lala,x);		printf("%X\n",x);		x();}