public static int CheckOption(LuaStatePtr l, int narg, string def, string[] lst) { sbyte *[] lst_ = new sbyte *[lst.Length]; for (int i = 0; i < lst.Length; ++i) { fixed(char *c = &lst[i].ToCharArray()[0]) { sbyte *b = (sbyte *)c; lst_[i] = b; } } return(LuaLDelegates.luaL_checkoption(l, narg, def, lst_)); }