Exemple #1
0
/** void TableView::setCurrentIndex(int row, int col)
 * include/mimas/TableView.h:100
 */
static int TableView_setCurrentIndex(lua_State *L) {
  try {
    TableView *self = *((TableView **)dub_checksdata(L, 1, "mimas.TableView"));
    int row = dub_checkint(L, 2);
    int col = dub_checkint(L, 3);
    self->setCurrentIndex(row, col);
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "setCurrentIndex: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "setCurrentIndex: Unknown exception");
  }
  return dub_error(L);
}