LCOV - code coverage report
Current view: directory - gfx/angle/src/compiler - ExtensionBehavior.h (source / functions) Found Hit Coverage
Test: app.info Lines: 7 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : //
       2                 : // Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved.
       3                 : // Use of this source code is governed by a BSD-style license that can be
       4                 : // found in the LICENSE file.
       5                 : //
       6                 : 
       7                 : #ifndef _EXTENSION_BEHAVIOR_INCLUDED_
       8                 : #define _EXTENSION_BEHAVIOR_INCLUDED_
       9                 : 
      10                 : #include "compiler/Common.h"
      11                 : 
      12                 : typedef enum {
      13                 :     EBhRequire,
      14                 :     EBhEnable,
      15                 :     EBhWarn,
      16                 :     EBhDisable,
      17                 :     EBhUndefined,
      18                 : } TBehavior;
      19                 : 
      20               0 : inline const char* getBehaviorString(TBehavior b)
      21                 : {
      22               0 :     switch(b) {
      23                 :       case EBhRequire:
      24               0 :         return "require";
      25                 :       case EBhEnable:
      26               0 :         return "enable";
      27                 :       case EBhWarn:
      28               0 :         return "warn";
      29                 :       case EBhDisable:
      30               0 :         return "disable";
      31                 :       default:
      32               0 :         return NULL;
      33                 :     }
      34                 : }
      35                 : 
      36                 : typedef TMap<TString, TBehavior> TExtensionBehavior;
      37                 : 
      38                 : #endif // _EXTENSION_TABLE_INCLUDED_

Generated by: LCOV version 1.7