summaryrefslogtreecommitdiff
path: root/tolua/src/tests/tmodule.c
blob: c5e0d29be9dccbaaf7c2a1074b3c0594048658c3 (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
#include "lualib.h"
#include "lauxlib.h"

#include "tmodule.h"

int a = 1;
int b = 2;
int c = 3;
int d = 4;

int main ()
{
	int  tolua_tmodule_open (lua_State*);

	lua_State* L = luaL_newstate();
	luaL_openlibs(L);
	tolua_tmodule_open(L);

	luaL_dofile(L,"tmodule.lua");

	lua_close(L);
	return 0;
}