michael@0: // michael@0: // Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: // michael@0: michael@0: #ifndef _EXTENSION_BEHAVIOR_INCLUDED_ michael@0: #define _EXTENSION_BEHAVIOR_INCLUDED_ michael@0: michael@0: #include michael@0: #include michael@0: michael@0: typedef enum michael@0: { michael@0: EBhRequire, michael@0: EBhEnable, michael@0: EBhWarn, michael@0: EBhDisable, michael@0: EBhUndefined michael@0: } TBehavior; michael@0: michael@0: inline const char* getBehaviorString(TBehavior b) michael@0: { michael@0: switch(b) michael@0: { michael@0: case EBhRequire: return "require"; michael@0: case EBhEnable: return "enable"; michael@0: case EBhWarn: return "warn"; michael@0: case EBhDisable: return "disable"; michael@0: default: return NULL; michael@0: } michael@0: } michael@0: michael@0: // Mapping between extension name and behavior. michael@0: typedef std::map TExtensionBehavior; michael@0: michael@0: #endif // _EXTENSION_TABLE_INCLUDED_