summaryrefslogtreecommitdiff
path: root/src/configure.h
blob: 2589d66659da493f626994bfc1d64b0057ca3fce (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef _CONFIGURE_H_
#define _CONFIGURE_H_

#define TEST_0 0
#define TEST_1 1
#define TEST_2 2
#define TEST_3 3
#define TEST_4 4
#define TEST_5 5
#define TEST_6 6
#define TEST_7 7
#define TEST_8 8
#define TEST_9 9
#define TEST_10 10


#define BUILD_TEST TEST_5

//-----------------------------------------------------------------------------------------------------
//
//extern "C" {
#include "lua51/lua.h"
#include "lua51/lualib.h"
#include "lua51/lauxlib.h"
//}

inline void luax_registerglobal(lua_State* L, luaL_reg *fns)
{
	luaL_reg* fn;
	int i = 0;
	for (fn = &fns[0]; fn->name != 0; fn = &fns[++i])
	{
		lua_pushcfunction(L, fn->func);
		lua_setglobal(L, fn->name);
	}
}


#endif