SpObject.inl
上传用户:zhanglf88
上传日期:2013-11-19
资源大小:6036k
文件大小:1k
源码类别:

金融证券系统

开发平台:

Visual C++

  1. //Object
  2. #ifdef _SPOBJ_INLINE
  3. _SPOBJ_INLINE Object::Object()
  4. { SetLastError( errObject_None ); }
  5. _SPOBJ_INLINE Object::~Object()
  6. { }
  7. #ifndef _DEBUG
  8. _SPOBJ_INLINE void Object::operator delete(void* p)
  9. ::operator delete(p); 
  10. }
  11. _SPOBJ_INLINE void* Object::operator new(size_t nSize)
  12. return ::operator new(nSize); 
  13. }
  14. #endif //_DEBUG
  15. _SPOBJ_INLINE int Object::GetLastError( ) const
  16. {
  17. return m_nErrorStatus;
  18. }
  19. _SPOBJ_INLINE void Object::SetLastError( int nErr )
  20. {
  21. m_nErrorStatus = nErr;
  22. return;
  23. }
  24. #endif //_SPOBJ_INLINE