~ppsspp/ppsspp/ppsspp-1.2.2

« back to all changes in this revision

Viewing changes to ext/armips/Core/ExpressionFunctions.h

  • Committer: Sérgio Benjamim
  • Date: 2016-04-25 02:30:18 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20160425023018-wk3rd7nu30fejjzz
1.2.2 source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#pragma once
 
2
#include "Expression.h"
 
3
#include <map>
 
4
 
 
5
typedef ExpressionValue (*ExpressionFunction)(const std::wstring& funcName, const std::vector<ExpressionValue>&);
 
6
 
 
7
struct ExpressionFunctionEntry {
 
8
        ExpressionFunction function;
 
9
        size_t minParams;
 
10
        size_t maxParams;
 
11
        bool safe;              // result doesn't depend on the current state
 
12
};
 
13
 
 
14
typedef std::map<std::wstring, const ExpressionFunctionEntry> ExpressionFunctionMap;
 
15
 
 
16
extern const ExpressionFunctionMap expressionFunctions;
 
17
 
 
18
ExpressionValue expFuncDefined(ExpressionInternal* exp);