summaryrefslogtreecommitdiff
path: root/tolua/src/tests/tdirective.pkg
blob: 024c7956a8091e4683fca50143da5cb284137584 (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
$#include "lualib.h"
$#include "lauxlib.h"

$int a;
$extern int a;

$int main (void)
${
$ lua_State* L = luaL_newstate();
$	luaopen_base(L);
$ tolua_tdirective_open(L);
$	luaL_dofile(L,"tdirective.lua");
$	lua_close(L);
$ return 0;
$}

$pfile "tdirectivepkg.pkg"

$<
 a = 3;
$>

$[
A = 4
$]

$lfile "tdirectivelua.lua"