Blender  V3.3
Macros
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
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
SyclQueue void void size_t num_bytes void

Definition at line 41 of file utildefines.h.

◆ LIBMV_OBJECT_NEW

#define LIBMV_OBJECT_NEW (   type,
  ... 
)     new (malloc(sizeof(type))) type(__VA_ARGS__)

Definition at line 38 of file utildefines.h.

◆ LIBMV_STRUCT_DELETE

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

Definition at line 50 of file utildefines.h.

◆ LIBMV_STRUCT_NEW

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

Definition at line 49 of file utildefines.h.