summaryrefslogtreecommitdiff
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 0000000..16435d8
--- /dev/null
+++ b/spec/fixtures/with_external_dep.c
@@ -0,0 +1,10 @@
+#include <foo/foo.h>
+#include <lua.h>
+#include <lauxlib.h>
+
+int luaopen_with_external_dep(lua_State* L) {
+ lua_newtable(L);
+ lua_pushinteger(L, FOO);
+ lua_setfield(L, -2, "foo");
+ return 1;
+}