#include <lua.h>
#include <lauxlib.h>

int allocate_string(lua_State *L) {
    lua_pushstring(L, "test string");
    return 1;
}

static const struct luaL_Reg reshash [] = {
    {"allocate_string", allocate_string},
    {NULL, NULL}
};

int luaopen_reshash(lua_State *L) {
    luaL_register(L, "reshash", reshash);
    return 1;
}
