anders@colinux:~/dlua/wtools$ ./generate.tcl lua CFunction atpanic (lua_CFunction panicf) { return lua_atpanic(L, panicf); } void call (int nargs, int nresults) { lua_call(L, nargs, nresults); } int lua_checkstack (int extra) { return lua_lua_checkstack(L, extra); } void close () { lua_close(L); } void concat (int n) { lua_concat(L, n); } int cpcall (lua_CFunction func, void* ud) { return lua_cpcall(L, func, ud); } void createtable (int narr, int nrec) { lua_createtable(L, narr, nrec); } int dump (lua_Writer writer, void* data) { return lua_dump(L, writer, data); } int equal (int index1, int index2) { return lua_equal(L, index1, index2); } int error () { return lua_error(L); } int gc (int what, int data) { return lua_gc(L, what, data); } lua Alloc getallocf (void** ud) { return lua_getallocf(L, ud); } void getfenv (int index) { lua_getfenv(L, index); } void getfield (int index, /*const*/ char* k) { lua_getfield(L, index, k); } void getglobal (/*const*/ char* name) { lua_getglobal(L, name); } int getmetatable (int index) { return lua_getmetatable(L, index); } void gettable (int index) { lua_gettable(L, index); } int gettop () { return lua_gettop(L); } void insert (int index) { lua_insert(L, index); } bit isboolean (int index) { return lua_isboolean(L, index); } bit iscfunction (int index) { return lua_iscfunction(L, index); } bit isfunction (int index) { return lua_isfunction(L, index); } bit islightuserdata (int index) { return lua_islightuserdata(L, index); } bit isnil (int index) { return lua_isnil(L, index); } bit isnumber (int index) { return lua_isnumber(L, index); } bit isstring (int index) { return lua_isstring(L, index); } bit istable (int index) { return lua_istable(L, index); } bit isthread (int index) { return lua_isthread(L, index); } bit isuserdata (int index) { return lua_isuserdata(L, index); } bit lessthan (int index1, int index2) { return lua_lessthan(L, index1, index2); } int load (lua_Reader reader, void* data, /*const*/ char* chunkname) { return lua_load(L, reader, data, chunkname); } lua State* newstate (lua_Alloc f, void* ud) { return lua_newstate(L, f, ud); } void newtable () { lua_newtable(L); } lua State* newthread () { return lua_newthread(L); } void* newuserdata (size_t size) { return lua_newuserdata(L, size); } int next (int index) { return lua_next(L, index); } size t objlen (int index) { return lua_objlen(L, index); } int pcall (int nargs, int nresults, int errfunc) { return lua_pcall(L, nargs, nresults, errfunc); } void pop (int n) { lua_pop(L, n); } void pushboolean (bit b) { lua_pushboolean(L, bit b); } void pushcclosure (lua_CFunction fn, int n) { lua_pushcclosure(L, fn, n); } void pushcfunction (lua_CFunction f) { lua_pushcfunction(L, f); } const char* pushfstring (/*const*/ char* fmt, ...) { return lua_pushfstring(L, fmt, ...); } void pushinteger (lua_Integer n) { lua_pushinteger(L, n); } void pushlightuserdata (void* p) { lua_pushlightuserdata(L, p); } void pushlstring (/*const*/ char* s, size_t len) { lua_pushlstring(L, s, len); } void pushnil () { lua_pushnil(L); } void pushnumber (lua_Number n) { lua_pushnumber(L, n); } void pushstring (/*const*/ char* s) { lua_pushstring(L, s); } int pushthread () { return lua_pushthread(L); } void pushvalue (int index) { lua_pushvalue(L, index); } const char* pushvfstring (/*const*/ char* fmt, va_list argp) { return lua_pushvfstring(L, fmt, argp); } bit rawequal (int index1, int index2) { return lua_rawequal(L, index1, index2); } void rawget (int index) { lua_rawget(L, index); } void rawgeti (int index, int n) { lua_rawgeti(L, index, n); } void rawset (int index) { lua_rawset(L, index); } void rawseti (int index, int n) { lua_rawseti(L, index, n); } void register (/*const*/ char* name, lua_CFunction f) { lua_register(L, name, f); } void remove (int index) { lua_remove(L, index); } void replace (int index) { lua_replace(L, index); }