1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-07-29 21:01:13 +03:00

Regorganized directories to make them more intuitive

This commit is contained in:
Thomas Davis
2013-08-23 19:36:42 -04:00
parent 1bef635908
commit b2aee90d14
149 changed files with 836 additions and 669 deletions

19
examples/lua/lua_dll.c Normal file
View File

@ -0,0 +1,19 @@
#include <stdio.h>
#include "lua.h"
#include "lauxlib.h"
static int smile(lua_State *L) {
(void) L; // Unused
printf("%s\n", ":-)");
return 0;
}
int LUA_API luaopen_lua_dll(lua_State *L) {
static const struct luaL_Reg api[] = {
{"smile", smile},
{NULL, NULL},
};
luaL_openlib(L, "lua_dll", api, 0);
return 1;
}