Blender V4.3
utildefines.h File Reference

Go to the source code of this file.

Macros

#define LIBMV_OBJECT_NEW(type, ...)    new (malloc(sizeof(type))) type(__VA_ARGS__)
 
#define LIBMV_OBJECT_DELETE(what, type)
 
#define LIBMV_STRUCT_NEW(type, count)   (type*)malloc(sizeof(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 42 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,
... )    new (malloc(sizeof(type))) type(__VA_ARGS__)

◆ LIBMV_STRUCT_DELETE

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

Definition at line 51 of file utildefines.h.

Referenced by libmv_featuresDestroy().

◆ LIBMV_STRUCT_NEW

#define LIBMV_STRUCT_NEW ( type,
count )   (type*)malloc(sizeof(type) * count)

Definition at line 50 of file utildefines.h.