Exemple #1
0
/** LuaStackSize TableView::currentIndex(lua_State *L)
 * include/mimas/TableView.h:93
 */
static int TableView_currentIndex(lua_State *L) {
  try {
    TableView *self = *((TableView **)dub_checksdata(L, 1, "mimas.TableView"));
    return self->currentIndex(L);
  } catch (std::exception &e) {
    lua_pushfstring(L, "currentIndex: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "currentIndex: Unknown exception");
  }
  return dub_error(L);
}