diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-08 16:26:48 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-08 16:26:48 -0200 |
commit | d80124af9cd929b395b4d4c353b51ccc902a3f9e (patch) | |
tree | a738a509039b286697819db762916cfda0384413 /spec/fixtures/with_external_dep.c | |
parent | 98a0bd9a97190be8ba10f14a3d67e42de827b04a (diff) | |
download | luarocks-d80124af9cd929b395b4d4c353b51ccc902a3f9e.tar.gz luarocks-d80124af9cd929b395b4d4c353b51ccc902a3f9e.tar.bz2 luarocks-d80124af9cd929b395b4d4c353b51ccc902a3f9e.zip |
Reorganize test suite files
Diffstat (limited to 'spec/fixtures/with_external_dep.c')
-rw-r--r-- | spec/fixtures/with_external_dep.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/fixtures/with_external_dep.c b/spec/fixtures/with_external_dep.c new file mode 100644 index 00000000..16435d8f --- /dev/null +++ b/spec/fixtures/with_external_dep.c | |||
@@ -0,0 +1,10 @@ | |||
1 | #include <foo/foo.h> | ||
2 | #include <lua.h> | ||
3 | #include <lauxlib.h> | ||
4 | |||
5 | int luaopen_with_external_dep(lua_State* L) { | ||
6 | lua_newtable(L); | ||
7 | lua_pushinteger(L, FOO); | ||
8 | lua_setfield(L, -2, "foo"); | ||
9 | return 1; | ||
10 | } | ||