9#define COMMODITY_METATABLE \
Commodity * lua_tocommodity(lua_State *L, int ind)
Lua bindings to interact with commodities.
int nlua_loadCommodity(nlua_env env)
Loads the commodity library.
Commodity ** lua_pushcommodity(lua_State *L, Commodity *commodity)
Pushes a commodity on the stack.
Commodity * luaL_validcommodity(lua_State *L, int ind)
Makes sure the commodity is valid or raises a Lua error.
int lua_iscommodity(lua_State *L, int ind)
Checks to see if ind is a commodity.
Commodity * luaL_checkcommodity(lua_State *L, int ind)
Gets commodity at index or raises error if there is no commodity at index.