Simple data structures / objects in plain C Snapshot
base.h
Go to the documentation of this file.
00001 /* Copyright (c) Michael Moser (2011) . 3-clause BSD License applies */
00002 
00003 #ifndef __X_Y_Z_BASE_H_
00004 #define __X_Y_Z_BASE_H_
00005 
00006 
00007 #include <stdint.h>
00008 #include <stddef.h>
00009 #include <stdlib.h>
00010 #include <sys/types.h>
00011 
00012 #define _MEMBEROF(ptr,offset)                   (((uint8_t *) ptr) - offset)
00013 
00014 
00015 #define M_INLINE  static inline
00016 #define M_UNUSED(x) (void) (x)
00017 
00018 
00019 #endif