Esempio n. 1
0
/** void midi::Out::virtualPort(const char *port_name, lua_State *L)
 * include/midi/Out.h:101
 */
static int Out_virtualPort(lua_State *L) {
  try {
    Out *self = *((Out **)dub_checksdata(L, 1, "midi.Out"));
    const char *port_name = dub_checkstring(L, 2);
    self->virtualPort(port_name, L);
    return 0;
  } catch (std::exception &e) {
    lua_pushfstring(L, "virtualPort: %s", e.what());
  } catch (...) {
    lua_pushfstring(L, "virtualPort: Unknown exception");
  }
  return dub_error(L);
}