u1 get_one_byte (u1* pc ) { return *(pc+1); }
이함수를 매크로로 변환시키려고 하는데 return의 +1 때문에 쉽지 않네요. 좋은 방법이 있을까요?
#define get_one_byte(o) *(o+1);
---------------------------- May the F/OSS be with you..
#define get_one_byte(o) *((o)+1); :) 어쩌면 #define get_one_byte(o) *((u1*)(o)+1); 정도로 해주어야 할지도...
#define get_one_byte(o) *(o+1);
#define get_one_byte(o) *(o+1);
----------------------------
May the F/OSS be with you..
#define get_one_byte(o) *((o)+1); :)
#define get_one_byte(o) *((o)+1);
:)
어쩌면
#define get_one_byte(o) *((u1*)(o)+1);
정도로 해주어야 할지도...