Example #1
0
/** void TableView::do_edit(int row, int col)
 * include/mimas/TableView.h:110
 */
static int TableView_do_edit(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->do_edit(row, col);
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "do_edit: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "do_edit: Unknown exception");
  }
  return dub_error(L);
}