#include #include #include #include "util/util.h" #include "bind.h" void setup_gl(lua_State *L, int honey_tbl) { struct honey_tbl_t tbl[] = { #define X(name, func) H_FUNC(name, func), GL_FUNCTIONS #undef X #define X(name, value) H_INT(name, value), GL_ENUM #undef X H_END }; create_table(L, tbl); lua_setfield(L, honey_tbl, "gl"); }