21 lines
469 B
C++
21 lines
469 B
C++
// 18 january 2020
|
|
#include "uipriv_haiku.hpp"
|
|
|
|
bool uiprivOSVtableValid(const uiControlOSVtable *osVtable, const char *func)
|
|
{
|
|
if (osVtable->Size != sizeof (uiControlOSVtable)) {
|
|
uiprivProgrammerErrorWrongStructSize(osVtable->Size, "uiControlOSVtable", func);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
uiControlOSVtable *uiprivCloneOSVtable(const uiControlOSVtable *osVtable)
|
|
{
|
|
uiControlOSVtable *v2;
|
|
|
|
v2 = uiprivNew(uiControlOSVtable);
|
|
*v2 = *osVtable;
|
|
return v2;
|
|
}
|