aboutsummaryrefslogtreecommitdiff
path: root/spec/fixtures/with_external_dep.c
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fixtures/with_external_dep.c')
-rw-r--r--spec/fixtures/with_external_dep.c10
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
5int 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}