Main MRPT website > C++ reference for MRPT 1.5.7
Macros
jinclude.h File Reference
#include "mrpt_jconfig.h"
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for jinclude.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define JCONFIG_INCLUDED   /* so that mrpt_jpeglib.h doesn't do it again */
 
#define MEMZERO(target, size)   memset((void *)(target), 0, (size_t)(size))
 
#define MEMCOPY(dest, src, size)   memcpy((void *)(dest), (const void *)(src), (size_t)(size))
 
#define SIZEOF(object)   ((size_t) sizeof(object))
 
#define JFREAD(file, buf, sizeofbuf)    ((size_t) fread((void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))
 
#define JFWRITE(file, buf, sizeofbuf)    ((size_t) fwrite((const void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))
 

Macro Definition Documentation

◆ JCONFIG_INCLUDED

#define JCONFIG_INCLUDED   /* so that mrpt_jpeglib.h doesn't do it again */

Definition at line 14 of file jinclude.h.

◆ JFREAD

#define JFREAD (   file,
  buf,
  sizeofbuf 
)     ((size_t) fread((void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))

Definition at line 81 of file jinclude.h.

◆ JFWRITE

#define JFWRITE (   file,
  buf,
  sizeofbuf 
)     ((size_t) fwrite((const void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))

Definition at line 83 of file jinclude.h.

◆ MEMCOPY

#define MEMCOPY (   dest,
  src,
  size 
)    memcpy((void *)(dest), (const void *)(src), (size_t)(size))

Definition at line 61 of file jinclude.h.

◆ MEMZERO

#define MEMZERO (   target,
  size 
)    memset((void *)(target), 0, (size_t)(size))

Definition at line 60 of file jinclude.h.

◆ SIZEOF

#define SIZEOF (   object)    ((size_t) sizeof(object))

Definition at line 73 of file jinclude.h.




Page generated by Doxygen 1.9.1 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at mar 26 may 2026 13:12:03 CEST