summaryrefslogtreecommitdiff
path: root/ThirdParty/toluapp/src/tests/tmodule.c
blob: 1cbfa2964487f1eb7a8a7c14d2d95227984846d5 (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 = lua_open();
	luaopen_base(L);
	tolua_tmodule_open(L);

	lua_dofile(L,"tmodule.lua");

	lua_close(L);
	return 0;
}