/[svn]/linuxsampler/trunk/src/scriptvm/tree.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/tree.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3585 by schoenebeck, Fri Aug 30 17:51:24 2019 UTC revision 3586 by schoenebeck, Fri Aug 30 18:59:21 2019 UTC
# Line 21  Line 21 
21  #include <map>  #include <map>
22  #include <set>  #include <set>
23  #include <string.h> // for memset()  #include <string.h> // for memset()
24    #include <assert.h>
25  #include "../common/global.h"  #include "../common/global.h"
26  #include "../common/Ref.h"  #include "../common/Ref.h"
27  #include "../common/ArrayList.h"  #include "../common/ArrayList.h"
# Line 61  inline ExprType_t exprTypeOfVarName(cons Line 62  inline ExprType_t exprTypeOfVarName(cons
62      return (ExprType_t) -1;      return (ExprType_t) -1;
63  }  }
64    
65    inline ExprType_t scalarTypeOfArray(ExprType_t arrayType) {
66        if (arrayType == INT_ARR_EXPR) return INT_EXPR;
67        if (arrayType == REAL_ARR_EXPR) return REAL_EXPR;
68        if (arrayType == STRING_ARR_EXPR) return STRING_EXPR;
69        assert(false);
70        return EMPTY_EXPR; // just to shut up the compiler
71    }
72    
73  /**  /**
74   * Used by parser for parser error messages to provide a text with all data   * Used by parser for parser error messages to provide a text with all data
75   * types accepted by the given built-in function @a fn for the respective   * types accepted by the given built-in function @a fn for the respective

Legend:
Removed from v.3585  
changed lines
  Added in v.3586

  ViewVC Help
Powered by ViewVC