aboutsummaryrefslogtreecommitdiffstats
path: root/func.h
blob: cd5f3b3219e2cb3d104a64099669a70a832a7914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef FUNC_H_
#define FUNC_H_

#include <vector>

#include "value.h"

using namespace std;

struct FuncInfo {
  const char* name;
  void (*func)(const vector<Value*>& args, Evaluator* ev, string* s);
  int arity;
};

void InitFuncTable();
void QuitFuncTable();

FuncInfo* GetFuncInfo(StringPiece name);

#endif  // FUNC_H_