bcwx.cpp
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. #include "priv.h"
  2. #define ASSERTDATA
  3. /* Macro to compute a back pointer to a containing class given a
  4.    pointer to a member, the member name, and the containing class type.
  5.    This generates no code because it results in a constant offset.
  6.    Note: this is taken from mso96 dll code. */
  7. #define BACK_POINTER(p, m, c) 
  8. ((c *) (void *) (((char *) (void *) (p)) - (char *) (&((c *) 0)->m)))
  9. #ifdef DEBUG
  10. #define Debug(e) e
  11. #define DebugElse(s, t) s
  12. #else
  13. #define Debug(e)
  14. #define DebugElse(s, t) t
  15. #endif
  16. #include "bcw.cpp"
  17. IBindCtx * BCW_Create(IBindCtx* pibc)
  18. {
  19.     return BCW::Create(pibc);
  20. }