Example #1
0
/** void TableView::setEditTriggers(int triggers)
 * include/mimas/TableView.h:79
 */
static int TableView_setEditTriggers(lua_State *L) {
  try {
    TableView *self = *((TableView **)dub_checksdata(L, 1, "mimas.TableView"));
    int triggers = dub_checkint(L, 2);
    self->setEditTriggers(triggers);
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "setEditTriggers: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "setEditTriggers: Unknown exception");
  }
  return dub_error(L);
}