31,6 → 31,7 |
*/ |
|
/** @file |
* Character string to generic type map. |
*/ |
|
#ifndef __GENERIC_CHAR_MAP_H__ |
44,8 → 45,14 |
#include "char_map.h" |
#include "generic_field.h" |
|
/** Internal magic value for a map consistency check. |
*/ |
#define GENERIC_CHAR_MAP_MAGIC_VALUE 0x12345622 |
|
/** Character string to generic type map declaration. |
* @param name Name of the map. Input parameter. |
* @param type Inner object type. Input parameter |
*/ |
#define GENERIC_CHAR_MAP_DECLARE( name, type ) \ |
\ |
GENERIC_FIELD_DECLARE( name##_items, type ) \ |
68,6 → 75,11 |
int name##_initialize( name##_ref map ); \ |
int name##_is_valid( name##_ref map ); |
|
/** Character string to generic type map implementation. |
* Should follow declaration with the same parameters. |
* @param name Name of the map. Input parameter. |
* @param type Inner object type. Input parameter |
*/ |
#define GENERIC_CHAR_MAP_IMPLEMENT( name, type ) \ |
\ |
GENERIC_FIELD_IMPLEMENT( name##_items, type ) \ |