/** void TableView::foobar() * include/mimas/TableView.h:139 */ static int TableView_foobar(lua_State *L) { try { TableView *self = *((TableView **)dub_checksdata(L, 1, "mimas.TableView")); self->foobar(); return 0; } catch (std::exception &e) { lua_pushfstring(L, "foobar: %s", e.what()); } catch (...) { lua_pushfstring(L, "foobar: Unknown exception"); } return dub_error(L); }