Esempio n. 1
0
/** const char* midi::Out::portName() const
 * include/midi/Out.h:63
 */
static int Out_portName(lua_State *L) {
  try {
    Out *self = *((Out **)dub_checksdata(L, 1, "midi.Out"));
    lua_pushstring(L, self->portName());
    return 1;
  } catch (std::exception &e) {
    lua_pushfstring(L, "portName: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "portName: Unknown exception");
  }
  return dub_error(L);
}