2019-06-08 18:45:09 -05:00
|
|
|
// 8 june 2019
|
|
|
|
#import "uipriv_darwin.h"
|
|
|
|
|
|
|
|
bool uiprivOSVtableValid(uiControlOSVtable *osVtable, const char *func)
|
|
|
|
{
|
2019-06-11 20:29:25 -05:00
|
|
|
if (osVtable->Size != sizeof (uiControlOSVtable)) {
|
|
|
|
uiprivProgrammerErrorWrongStructSize(osVtable->Size, "uiControlOSVtable", func);
|
2019-06-10 22:09:35 -05:00
|
|
|
return false;
|
|
|
|
}
|
2019-06-08 18:45:09 -05:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
uiControlOSVtable *uiprivCloneOSVtable(uiControlOSVtable *osVtable)
|
|
|
|
{
|
2019-06-10 22:09:35 -05:00
|
|
|
uiControlOSVtable *v2;
|
|
|
|
|
|
|
|
v2 = uiprivNew(uiControlOSVtable);
|
|
|
|
*v2 = *osVtable;
|
|
|
|
return v2;
|
2019-06-08 18:45:09 -05:00
|
|
|
}
|