cr_string.h revision 8047c446a7fcabbed23c975bae98e1206ab18591
/* Copyright (c) 2001, Stanford University
* All rights reserved.
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#ifndef CR_STRING_H
#define CR_STRING_H
DECLEXPORT(int) crIsDigit( char c );
#define CR_GLVERSION_OFFSET_MAJOR (24)
#define CR_GLVERSION_OFFSET_MINOR (16)
#define CR_GLVERSION_OFFSET_BUILD (0)
#define CR_GLVERSION_MAX_MAJOR (0x7f)
#define CR_GLVERSION_MAX_MINOR (0xff)
#define CR_GLVERSION_MAX_BUILD (0xffff)
#define CR_GLVERSION_COMPOSE_EL(_val, _type) (((_val) << CR_GLVERSION_OFFSET_##_type) & CR_GLVERSION_MASK_##_type)
#define CR_GLVERSION_GET_EL(_val, _type) (((_val) & CR_GLVERSION_MASK_##_type) >> CR_GLVERSION_OFFSET_##_type)
#endif /* CR_STRING_H */