narg               43 lib/lua/lauxlib.c LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) {
narg               46 lib/lua/lauxlib.c     return luaL_error(L, "bad argument #%d (%s)", narg, extramsg);
narg               49 lib/lua/lauxlib.c     narg--;  /* do not count `self' */
narg               50 lib/lua/lauxlib.c     if (narg == 0)  /* error is in the self argument itself? */
narg               57 lib/lua/lauxlib.c                         narg, ar.name, extramsg);
narg               61 lib/lua/lauxlib.c LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname) {
narg               63 lib/lua/lauxlib.c                                     tname, luaL_typename(L, narg));
narg               64 lib/lua/lauxlib.c   return luaL_argerror(L, narg, msg);
narg               68 lib/lua/lauxlib.c static void tag_error (lua_State *L, int narg, int tag) {
narg               69 lib/lua/lauxlib.c   luaL_typerror(L, narg, lua_typename(L, tag));
narg               99 lib/lua/lauxlib.c LUALIB_API int luaL_checkoption (lua_State *L, int narg, const char *def,
narg              101 lib/lua/lauxlib.c   const char *name = (def) ? luaL_optstring(L, narg, def) :
narg              102 lib/lua/lauxlib.c                              luaL_checkstring(L, narg);
narg              107 lib/lua/lauxlib.c   return luaL_argerror(L, narg,
narg              146 lib/lua/lauxlib.c LUALIB_API void luaL_checktype (lua_State *L, int narg, int t) {
narg              147 lib/lua/lauxlib.c   if (lua_type(L, narg) != t)
narg              148 lib/lua/lauxlib.c     tag_error(L, narg, t);
narg              152 lib/lua/lauxlib.c LUALIB_API void luaL_checkany (lua_State *L, int narg) {
narg              153 lib/lua/lauxlib.c   if (lua_type(L, narg) == LUA_TNONE)
narg              154 lib/lua/lauxlib.c     luaL_argerror(L, narg, "value expected");
narg              158 lib/lua/lauxlib.c LUALIB_API const char *luaL_checklstring (lua_State *L, int narg, size_t *len) {
narg              159 lib/lua/lauxlib.c   const char *s = lua_tolstring(L, narg, len);
narg              160 lib/lua/lauxlib.c   if (!s) tag_error(L, narg, LUA_TSTRING);
narg              165 lib/lua/lauxlib.c LUALIB_API const char *luaL_optlstring (lua_State *L, int narg,
narg              167 lib/lua/lauxlib.c   if (lua_isnoneornil(L, narg)) {
narg              172 lib/lua/lauxlib.c   else return luaL_checklstring(L, narg, len);
narg              176 lib/lua/lauxlib.c LUALIB_API lua_Number luaL_checknumber (lua_State *L, int narg) {
narg              177 lib/lua/lauxlib.c   lua_Number d = lua_tonumber(L, narg);
narg              178 lib/lua/lauxlib.c   if (d == 0 && !lua_isnumber(L, narg))  /* avoid extra test when d is not 0 */
narg              179 lib/lua/lauxlib.c     tag_error(L, narg, LUA_TNUMBER);
narg              184 lib/lua/lauxlib.c LUALIB_API lua_Number luaL_optnumber (lua_State *L, int narg, lua_Number def) {
narg              185 lib/lua/lauxlib.c   return luaL_opt(L, luaL_checknumber, narg, def);
narg              189 lib/lua/lauxlib.c LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int narg) {
narg              190 lib/lua/lauxlib.c   lua_Integer d = lua_tointeger(L, narg);
narg              191 lib/lua/lauxlib.c   if (d == 0 && !lua_isnumber(L, narg))  /* avoid extra test when d is not 0 */
narg              192 lib/lua/lauxlib.c     tag_error(L, narg, LUA_TNUMBER);
narg              197 lib/lua/lauxlib.c LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int narg,
narg              199 lib/lua/lauxlib.c   return luaL_opt(L, luaL_checkinteger, narg, def);
narg               48 lib/lua/lauxlib.h LUALIB_API int (luaL_typerror) (lua_State *L, int narg, const char *tname);
narg               62 lib/lua/lauxlib.h LUALIB_API void (luaL_checktype) (lua_State *L, int narg, int t);
narg               63 lib/lua/lauxlib.h LUALIB_API void (luaL_checkany) (lua_State *L, int narg);
narg               71 lib/lua/lauxlib.h LUALIB_API int (luaL_checkoption) (lua_State *L, int narg, const char *def,
narg              555 lib/lua/lbaselib.c static int auxresume (lua_State *L, lua_State *co, int narg) {
narg              557 lib/lua/lbaselib.c   if (!lua_checkstack(co, narg))
narg              563 lib/lua/lbaselib.c   lua_xmove(L, co, narg);
narg              565 lib/lua/lbaselib.c   status = lua_resume(co, narg);
narg              257 lib/lua/loslib.c static int get_table_optbool(lua_State *L, int narg, const char *fname, int d)
narg              260 lib/lua/loslib.c 	lua_getfield(L, narg, fname);
narg               96 lib/lua/lua.c  static int docall (lua_State *L, int narg, int clear) {
narg               98 lib/lua/lua.c    int base = lua_gettop(L) - narg;  /* function index */
narg              102 lib/lua/lua.c    status = lua_pcall(L, narg, (clear ? 0 : LUA_MULTRET), base);
narg              117 lib/lua/lua.c    int narg;
narg              121 lib/lua/lua.c    narg = argc - (n + 1);  /* number of arguments to the script */
narg              122 lib/lua/lua.c    luaL_checkstack(L, narg + 3, "too many arguments to script");
narg              125 lib/lua/lua.c    lua_createtable(L, narg, n + 1);
narg              130 lib/lua/lua.c    return narg;
narg              242 lib/lua/lua.c    int narg = getargs(L, argv, n);  /* collect arguments */
narg              248 lib/lua/lua.c    lua_insert(L, -(narg+1));
narg              250 lib/lua/lua.c      status = docall(L, narg, 0);
narg              252 lib/lua/lua.c      lua_pop(L, narg);      
narg              214 lib/lua/lua.h  LUA_API int  (lua_resume) (lua_State *L, int narg);
narg              361 modules/luascript.c static int lua_get_key_arg( lua_State * L, int narg )
narg              363 modules/luascript.c     int k = script_keyid_by_name( luaL_checkstring( L, narg ) );