** Pastebin PRO Accounts Spring Special ** Get 40% discount for a limited time only! Click Here to check it out ;-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Nov 6th, 2011  |  syntax: None  |  size: 0.26 KB  |  views: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /* Use this type and macro to convert a pointer from the
  2.  * skin buffer to a useable pointer */
  3. typedef skinoffset uint32_t
  4. #define SKINOFFSETTOPTR(base, offset, type) ((type)&base[offset])
  5. #define PTRTOSKINOFFSET(base, pointer) ((void*)pointer-(void*)base)
clone this paste RAW Paste Data