Main MRPT website > C++ reference for MRPT 1.9.9
Macros
util.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _countof(_Array)   (sizeof(_Array) / sizeof(_Array[0]))
 
#define offsetof(_structure, _field)   ((_word_size_t) & (((_structure*)0x0)->_field))
 
#define BEGIN_STATIC_CODE(_blockname_)
 
#define END_STATIC_CODE(_blockname_)
 

Macro Definition Documentation

◆ _countof

#define _countof (   _Array)    (sizeof(_Array) / sizeof(_Array[0]))

Definition at line 40 of file util.h.

◆ BEGIN_STATIC_CODE

#define BEGIN_STATIC_CODE (   _blockname_)
Value:
static class _static_code_##_blockname_ \
{ \
public: \
_static_code_##_blockname_()

Definition at line 56 of file util.h.

◆ END_STATIC_CODE

#define END_STATIC_CODE (   _blockname_)
Value:
} \
_instance_##_blockname_;

Definition at line 62 of file util.h.

◆ offsetof

#define offsetof (   _structure,
  _field 
)    ((_word_size_t) & (((_structure*)0x0)->_field))

Definition at line 52 of file util.h.




Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST