aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
blob: 1d45cadb3cb3ceb9767b2ed632c100ca699d5531 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "lua.h"


extern int _print_type;
extern int _max_depth;
extern int _start_nl_at;

struct str_to_int {
  const char* key;
  int* value;
};

static struct str_to_int config_map[] = {
  {"print_type", &_print_type},
  {"max_depth", &_max_depth},
  {"start_nl_at", &_start_nl_at},
  {NULL,NULL}
};

int l_set(lua_State*);

static const luaL_Reg config_function_list [] = {
  {"set",l_set},
  {NULL,NULL}
};