Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Nov 6th, 2011  |  syntax: None  |  size: 0.26 KB  |  hits: 28  |  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)
  6.  
  7.