summaryrefslogtreecommitdiff
path: root/navit/attr.h
diff options
context:
space:
mode:
authortegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-03-19 22:52:13 +0000
committertegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-03-19 22:52:13 +0000
commitf59f80f1414113cd85198bc0bbe87a43e57a9f08 (patch)
treeae7a1e38a4c384312027ed9844301f7b562bea9e /navit/attr.h
parent46b2ebe7c46ec54ddc1cc049c275acef4de0b8ce (diff)
downloadnavit-f59f80f1414113cd85198bc0bbe87a43e57a9f08.tar.gz
Add:core:Added ATTR_IS_ITEM() helper macro
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4374 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/attr.h')
-rw-r--r--navit/attr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/navit/attr.h b/navit/attr.h
index 75f824d3b..3a4120545 100644
--- a/navit/attr.h
+++ b/navit/attr.h
@@ -93,6 +93,7 @@ enum attr_position_valid {
#define ATTR_IS_DOUBLE(x) ((x) >= attr_type_double_begin && (x) <= attr_type_double_end)
#define ATTR_IS_STRING(x) ((x) >= attr_type_string_begin && (x) <= attr_type_string_end)
#define ATTR_IS_OBJECT(x) ((x) >= attr_type_object_begin && (x) <= attr_type_object_end)
+#define ATTR_IS_ITEM(x) ((x) >= attr_type_item_begin && (x) <= attr_type_item_end)
#define ATTR_IS_COORD_GEO(x) ((x) >= attr_type_coord_geo_begin && (x) <= attr_type_coord_geo_end)
#define ATTR_IS_NUMERIC(x) (ATTR_IS_INT(x) || ATTR_IS_DOUBLE(x))
#define ATTR_IS_COLOR(x) ((x) >= attr_type_color_begin && (x) <= attr_type_color_end)