mirror of https://github.com/bjc/prosody
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
305 B
14 lines
305 B
#include <lua.h>
|
|
#include <lauxlib.h>
|
|
|
|
static int Lcreate_table(lua_State* L) {
|
|
lua_createtable(L, luaL_checkinteger(L, 1), luaL_checkinteger(L, 2));
|
|
return 1;
|
|
}
|
|
|
|
int luaopen_util_table(lua_State* L) {
|
|
lua_newtable(L);
|
|
lua_pushcfunction(L, Lcreate_table);
|
|
lua_setfield(L, -2, "create");
|
|
return 1;
|
|
}
|
|
|