Add more Windows (Microsoft) macros and a few lines of related test code
This commit is contained in:
parent
0f9ce5edd5
commit
97bf5de133
|
@ -5540,14 +5540,16 @@ HFONT CreateFont(
|
|||
<podtype name="__time64_t" sign="s" size="8"/>
|
||||
<podtype name="_locale_t"/>
|
||||
<define name="afx_msg" value=""/>
|
||||
<define name="AFX_EXT_CLASS" value=""/>
|
||||
<define name="DEBUG_NEW" value="new"/>
|
||||
<define name="DECLARE_MESSAGE_MAP()" value=""/>
|
||||
<define name="DECLARE_DYNAMIC(x)" value=""/>
|
||||
<define name="DECLARE_DYNAMIC_CLASS(x)" value=""/>
|
||||
<define name="DECLARE_DYNCREATE(x)" value=""/>
|
||||
<define name="DECLARE_SERIAL(x)" value=""/>
|
||||
<define name="IMPLEMENT_DYNCREATE(x,y)" value=""/>
|
||||
<define name="IMPLEMENT_SERIAL(x,y,z)" value=""/>
|
||||
<define name="IMPLEMENT_DYNAMIC(name,base)" value=""/>
|
||||
<define name="IMPLEMENT_DYNCREATE(name,base)" value=""/>
|
||||
<define name="IMPLEMENT_SERIAL(name,base,schema)" value=""/>
|
||||
<define name="INVALID_HANDLE_VALUE" value="0"/>
|
||||
<define name="INVALID_SOCKET" value="0"/>
|
||||
<define name="WINAPI" value="__stdcall"/>
|
||||
|
|
|
@ -858,3 +858,14 @@ error_t nullPointer__strncpy_s_l(char *strDest, size_t numberOfElements, const c
|
|||
// no warning shall be shown for
|
||||
return _strncpy_s_l(strDest, numberOfElements, strSource, count, locale);
|
||||
}
|
||||
|
||||
class MyClass :public CObject {
|
||||
DECLARE_DYNAMIC(MyClass)
|
||||
DECLARE_DYNCREATE(MyClass)
|
||||
DECLARE_SERIAL(MyClass)
|
||||
public:
|
||||
MyClass() {}
|
||||
};
|
||||
IMPLEMENT_DYNAMIC(MyClass, CObject)
|
||||
IMPLEMENT_DYNCREATE(MyClass, CObject)
|
||||
IMPLEMENT_SERIAL(MyClass,CObject, 42)
|
||||
|
|
Loading…
Reference in New Issue