luaL_optstring

[-0, +0, v]

  1. const char *luaL_optstring (lua_State *L,
  2. int arg,
  3. const char *d);

如果函数的第 arg 个参数是一个字符串,返回该字符串。若该参数不存在或是 nil,返回 d。除此之外的情况,抛出错误。