Blender V5.0
utildefines.h File Reference

Go to the source code of this file.

Macros

#define LIBMV_OBJECT_NEW(type, ...)
#define LIBMV_OBJECT_DELETE(what, type)
#define LIBMV_STRUCT_NEW(type, count)
#define LIBMV_STRUCT_DELETE(what)

Macro Definition Documentation

◆ LIBMV_OBJECT_DELETE

#define LIBMV_OBJECT_DELETE ( what,
type )
Value:
{ \
if (what) { \
((type*)(what))->~type(); \
free(what); \
} \
} \
(void)0

Definition at line 43 of file utildefines.h.

Referenced by libmv_autoTrackDestroy(), libmv_cameraIntrinsicsDestroy(), libmv_FrameAccessorDestroy(), libmv_reconstructionDestroy(), libmv_tracksDestroy(), and libmv_tracksDestroyN().

◆ LIBMV_OBJECT_NEW

#define LIBMV_OBJECT_NEW ( type,
... )

◆ LIBMV_STRUCT_DELETE

#define LIBMV_STRUCT_DELETE ( what)
Value:
{ \
if (what) \
free(what); \
} \
(void)0

Definition at line 52 of file utildefines.h.

Referenced by libmv_featuresDestroy().

◆ LIBMV_STRUCT_NEW

#define LIBMV_STRUCT_NEW ( type,
count )
Value:
(type*)malloc(sizeof(type) * count)
int count

Definition at line 51 of file utildefines.h.