亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? lauxlib.c

?? lua的即時編譯器。支持lua 5.1.2版本
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*** $Id: lauxlib.c,v 1.159 2006/03/21 19:31:09 roberto Exp $** Auxiliary functions for building Lua libraries** See Copyright Notice in lua.h*/#include <ctype.h>#include <errno.h>#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>/* This file uses only the official API of Lua.** Any function declared here could be written as an application function.*/#define lauxlib_c#define LUA_LIB#include "lua.h"#include "lauxlib.h"#define FREELIST_REF	0	/* free list of references *//* convert a stack index to positive */#define abs_index(L, i)		((i) > 0 || (i) <= LUA_REGISTRYINDEX ? (i) : \					lua_gettop(L) + (i) + 1)/*** {======================================================** Error-report functions** =======================================================*/LUALIB_API int luaL_argerror (lua_State *L, int narg, const char *extramsg) {  lua_Debug ar;  if (!lua_getstack(L, 0, &ar))  /* no stack frame? */    return luaL_error(L, "bad argument #%d (%s)", narg, extramsg);  lua_getinfo(L, "n", &ar);  if (strcmp(ar.namewhat, "method") == 0) {    narg--;  /* do not count `self' */    if (narg == 0)  /* error is in the self argument itself? */      return luaL_error(L, "calling " LUA_QS " on bad self (%s)",                           ar.name, extramsg);  }  if (ar.name == NULL)    ar.name = "?";  return luaL_error(L, "bad argument #%d to " LUA_QS " (%s)",                        narg, ar.name, extramsg);}LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname) {  const char *msg = lua_pushfstring(L, "%s expected, got %s",                                    tname, luaL_typename(L, narg));  return luaL_argerror(L, narg, msg);}static void tag_error (lua_State *L, int narg, int tag) {  luaL_typerror(L, narg, lua_typename(L, tag));}LUALIB_API void luaL_where (lua_State *L, int level) {  lua_Debug ar;  if (lua_getstack(L, level, &ar)) {  /* check function at level */    lua_getinfo(L, "Sl", &ar);  /* get info about it */    if (ar.currentline > 0) {  /* is there info? */      lua_pushfstring(L, "%s:%d: ", ar.short_src, ar.currentline);      return;    }  }  lua_pushliteral(L, "");  /* else, no information available... */}LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) {  va_list argp;  va_start(argp, fmt);  luaL_where(L, 1);  lua_pushvfstring(L, fmt, argp);  va_end(argp);  lua_concat(L, 2);  return lua_error(L);}/* }====================================================== */LUALIB_API int luaL_checkoption (lua_State *L, int narg, const char *def,                                 const char *const lst[]) {  const char *name = (def) ? luaL_optstring(L, narg, def) :                             luaL_checkstring(L, narg);  int i;  for (i=0; lst[i]; i++)    if (strcmp(lst[i], name) == 0)      return i;  return luaL_argerror(L, narg,                       lua_pushfstring(L, "invalid option " LUA_QS, name));}LUALIB_API int luaL_newmetatable (lua_State *L, const char *tname) {  lua_getfield(L, LUA_REGISTRYINDEX, tname);  /* get registry.name */  if (!lua_isnil(L, -1))  /* name already in use? */    return 0;  /* leave previous value on top, but return 0 */  lua_pop(L, 1);  lua_newtable(L);  /* create metatable */  lua_pushvalue(L, -1);  lua_setfield(L, LUA_REGISTRYINDEX, tname);  /* registry.name = metatable */  return 1;}LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) {  void *p = lua_touserdata(L, ud);  if (p != NULL) {  /* value is a userdata? */    if (lua_getmetatable(L, ud)) {  /* does it have a metatable? */      lua_getfield(L, LUA_REGISTRYINDEX, tname);  /* get correct metatable */      if (lua_rawequal(L, -1, -2)) {  /* does it have the correct mt? */        lua_pop(L, 2);  /* remove both metatables */        return p;      }    }  }  luaL_typerror(L, ud, tname);  /* else error */  return NULL;  /* to avoid warnings */}LUALIB_API void luaL_checkstack (lua_State *L, int space, const char *mes) {  if (!lua_checkstack(L, space))    luaL_error(L, "stack overflow (%s)", mes);}LUALIB_API void luaL_checktype (lua_State *L, int narg, int t) {  if (lua_type(L, narg) != t)    tag_error(L, narg, t);}LUALIB_API void luaL_checkany (lua_State *L, int narg) {  if (lua_type(L, narg) == LUA_TNONE)    luaL_argerror(L, narg, "value expected");}LUALIB_API const char *luaL_checklstring (lua_State *L, int narg, size_t *len) {  const char *s = lua_tolstring(L, narg, len);  if (!s) tag_error(L, narg, LUA_TSTRING);  return s;}LUALIB_API const char *luaL_optlstring (lua_State *L, int narg,                                        const char *def, size_t *len) {  if (lua_isnoneornil(L, narg)) {    if (len)      *len = (def ? strlen(def) : 0);    return def;  }  else return luaL_checklstring(L, narg, len);}LUALIB_API lua_Number luaL_checknumber (lua_State *L, int narg) {  lua_Number d = lua_tonumber(L, narg);  if (d == 0 && !lua_isnumber(L, narg))  /* avoid extra test when d is not 0 */    tag_error(L, narg, LUA_TNUMBER);  return d;}LUALIB_API lua_Number luaL_optnumber (lua_State *L, int narg, lua_Number def) {  return luaL_opt(L, luaL_checknumber, narg, def);}LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int narg) {  lua_Integer d = lua_tointeger(L, narg);  if (d == 0 && !lua_isnumber(L, narg))  /* avoid extra test when d is not 0 */    tag_error(L, narg, LUA_TNUMBER);  return d;}LUALIB_API lua_Integer luaL_optinteger (lua_State *L, int narg,                                                      lua_Integer def) {  return luaL_opt(L, luaL_checkinteger, narg, def);}LUALIB_API int luaL_getmetafield (lua_State *L, int obj, const char *event) {  if (!lua_getmetatable(L, obj))  /* no metatable? */    return 0;  lua_pushstring(L, event);  lua_rawget(L, -2);  if (lua_isnil(L, -1)) {    lua_pop(L, 2);  /* remove metatable and metafield */    return 0;  }  else {    lua_remove(L, -2);  /* remove only metatable */    return 1;  }}LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) {  obj = abs_index(L, obj);  if (!luaL_getmetafield(L, obj, event))  /* no metafield? */    return 0;  lua_pushvalue(L, obj);  lua_call(L, 1, 1);  return 1;}LUALIB_API void (luaL_register) (lua_State *L, const char *libname,                                const luaL_Reg *l) {  luaI_openlib(L, libname, l, 0);}static int libsize (const luaL_Reg *l) {  int size = 0;  for (; l->name; l++) size++;  return size;}LUALIB_API void luaI_openlib (lua_State *L, const char *libname,                              const luaL_Reg *l, int nup) {  if (libname) {    int size = libsize(l);    /* check whether lib already exists */    luaL_findtable(L, LUA_REGISTRYINDEX, "_LOADED", size);    lua_getfield(L, -1, libname);  /* get _LOADED[libname] */    if (!lua_istable(L, -1)) {  /* not found? */      lua_pop(L, 1);  /* remove previous result */      /* try global variable (and create one if it does not exist) */      if (luaL_findtable(L, LUA_GLOBALSINDEX, libname, size) != NULL)        luaL_error(L, "name conflict for module " LUA_QS, libname);      lua_pushvalue(L, -1);      lua_setfield(L, -3, libname);  /* _LOADED[libname] = new table */    }    lua_remove(L, -2);  /* remove _LOADED table */    lua_insert(L, -(nup+1));  /* move library table to below upvalues */  }  for (; l->name; l++) {    int i;    for (i=0; i<nup; i++)  /* copy upvalues to the top */      lua_pushvalue(L, -nup);    lua_pushcclosure(L, l->func, nup);    lua_setfield(L, -(nup+2), l->name);  }  lua_pop(L, nup);  /* remove upvalues */}/*** {======================================================** getn-setn: size for arrays** =======================================================*/#if defined(LUA_COMPAT_GETN)static int checkint (lua_State *L, int topop) {  int n = (lua_type(L, -1) == LUA_TNUMBER) ? lua_tointeger(L, -1) : -1;  lua_pop(L, topop);  return n;}static void getsizes (lua_State *L) {  lua_getfield(L, LUA_REGISTRYINDEX, "LUA_SIZES");  if (lua_isnil(L, -1)) {  /* no `size' table? */    lua_pop(L, 1);  /* remove nil */    lua_newtable(L);  /* create it */    lua_pushvalue(L, -1);  /* `size' will be its own metatable */    lua_setmetatable(L, -2);    lua_pushliteral(L, "kv");    lua_setfield(L, -2, "__mode");  /* metatable(N).__mode = "kv" */    lua_pushvalue(L, -1);    lua_setfield(L, LUA_REGISTRYINDEX, "LUA_SIZES");  /* store in register */  }}LUALIB_API void luaL_setn (lua_State *L, int t, int n) {  t = abs_index(L, t);  lua_pushliteral(L, "n");  lua_rawget(L, t);  if (checkint(L, 1) >= 0) {  /* is there a numeric field `n'? */    lua_pushliteral(L, "n");  /* use it */    lua_pushinteger(L, n);    lua_rawset(L, t);  }  else {  /* use `sizes' */    getsizes(L);    lua_pushvalue(L, t);    lua_pushinteger(L, n);    lua_rawset(L, -3);  /* sizes[t] = n */    lua_pop(L, 1);  /* remove `sizes' */  }}LUALIB_API int luaL_getn (lua_State *L, int t) {  int n;  t = abs_index(L, t);  lua_pushliteral(L, "n");  /* try t.n */  lua_rawget(L, t);  if ((n = checkint(L, 1)) >= 0) return n;  getsizes(L);  /* else try sizes[t] */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品看片你懂得| 久久综合一区二区| 亚洲成人高清在线| 欧美色倩网站大全免费| 首页国产丝袜综合| 日韩欧美成人午夜| 国产高清不卡二三区| 中文字幕巨乱亚洲| 色综合一区二区| 免费观看在线色综合| 欧美变态凌虐bdsm| 国产99久久久国产精品潘金| |精品福利一区二区三区| 欧洲色大大久久| 麻豆精品视频在线观看免费| 中文字幕欧美日韩一区| 91日韩一区二区三区| 五月激情综合色| 精品福利av导航| 日本高清视频一区二区| 久久国产精品99久久人人澡| 日本一区二区免费在线观看视频| 日本乱码高清不卡字幕| 蜜桃精品视频在线观看| 国产精品久久久久天堂| 欧美私人免费视频| 国产精品影视天天线| 亚洲欧美日韩国产手机在线| 亚洲欧美日韩电影| 91超碰这里只有精品国产| 国产在线精品一区二区| 亚洲一区在线观看网站| 久久久久久一二三区| 亚洲国产视频直播| 久久综合九色综合久久久精品综合| 国产.精品.日韩.另类.中文.在线.播放| 《视频一区视频二区| 日韩一区二区免费在线电影| 99国产精品国产精品久久| 日本成人超碰在线观看| 亚洲欧洲精品一区二区三区不卡| 欧美一区午夜视频在线观看| 99视频一区二区| 久久成人精品无人区| 亚洲美女视频在线| 久久久久久久综合色一本| 欧美日韩国产a| a在线播放不卡| 国产一区二区三区最好精华液| 亚洲综合在线免费观看| 国产丝袜欧美中文另类| 91精品国产欧美日韩| 日韩一区二区精品在线观看| 99久久99久久免费精品蜜臀| 国产一区二区主播在线| 日本v片在线高清不卡在线观看| 国产精品久99| 国产欧美日韩中文久久| 精品少妇一区二区三区在线播放 | 国产女人aaa级久久久级| 欧美日本一区二区| 欧美亚洲综合在线| 色婷婷精品久久二区二区蜜臂av| 成人午夜av电影| 高清久久久久久| 国产精品白丝jk黑袜喷水| 韩国精品久久久| 精品夜夜嗨av一区二区三区| 轻轻草成人在线| 日韩av电影免费观看高清完整版在线观看| 亚洲欧美日韩一区二区| 亚洲欧洲www| 中文字幕一区日韩精品欧美| 国产精品人人做人人爽人人添| 久久丝袜美腿综合| 国产日韩三级在线| 日本一区二区电影| 欧美极品aⅴ影院| 欧美激情一区二区三区全黄| 欧美国产日韩a欧美在线观看| 久久精品欧美一区二区三区不卡| 精品少妇一区二区三区视频免付费 | 久久久国产精华| 久久久精品日韩欧美| 欧美精品一区二| 久久久精品欧美丰满| 欧美国产97人人爽人人喊| 国产精品区一区二区三区 | 日本一二三四高清不卡| 欧美国产综合一区二区| 国产精品久久777777| 亚洲免费在线视频一区 二区| 日本欧美肥老太交大片| 免费在线一区观看| 国内外成人在线| 成人国产视频在线观看| 91免费在线视频观看| 欧美色综合久久| 欧美成人r级一区二区三区| 久久精品欧美一区二区三区麻豆 | 91国产丝袜在线播放| 欧美在线制服丝袜| 日韩一区二区三区av| 国产三级精品三级| 亚洲乱码中文字幕| 日本欧美一区二区在线观看| 国产酒店精品激情| 91成人网在线| 精品久久久久香蕉网| 国产精品亲子伦对白| 亚洲国产综合视频在线观看| 狠狠色丁香久久婷婷综合_中| 成人91在线观看| 欧美精品日日鲁夜夜添| 国产三级精品三级| 午夜电影一区二区三区| 国产在线日韩欧美| 在线视频中文字幕一区二区| 日韩视频一区在线观看| 中文字幕在线一区免费| 亚洲成人动漫一区| 成人黄色电影在线| 91麻豆精品国产综合久久久久久| 久久久精品影视| 日韩激情在线观看| av电影在线观看不卡| 日韩一级完整毛片| 亚洲丝袜精品丝袜在线| 精品一区二区三区视频在线观看| 色先锋aa成人| 国产丝袜欧美中文另类| 奇米四色…亚洲| 91蜜桃在线观看| 国产欧美日韩精品一区| 免费看欧美女人艹b| 91久久精品一区二区三区| 久久久午夜电影| 蜜臀久久99精品久久久画质超高清| 99国产精品久| 中国色在线观看另类| 美女在线观看视频一区二区| 久久久久久电影| 青草国产精品久久久久久| 色94色欧美sute亚洲13| 国产精品拍天天在线| 国模娜娜一区二区三区| 777色狠狠一区二区三区| 亚洲精品国产高清久久伦理二区| 国产v日产∨综合v精品视频| 91.com在线观看| 偷拍与自拍一区| 在线视频国内自拍亚洲视频| |精品福利一区二区三区| 成人精品鲁一区一区二区| 精品成a人在线观看| 精品在线播放午夜| 91精品福利在线一区二区三区 | 精品免费一区二区三区| 日韩激情在线观看| 欧美电影一区二区| 亚洲成在人线在线播放| 欧美影视一区在线| 一级特黄大欧美久久久| 欧美一a一片一级一片| 亚洲在线观看免费| 欧洲另类一二三四区| 亚洲一区二区精品视频| 在线观看日韩av先锋影音电影院| 亚洲免费在线视频| 欧美三级韩国三级日本一级| 亚洲成人精品一区| 欧美亚洲自拍偷拍| 水野朝阳av一区二区三区| 91精品国产综合久久久久久久久久| 婷婷夜色潮精品综合在线| 91麻豆精品国产自产在线观看一区| 视频一区视频二区在线观看| 日韩一区和二区| 国产专区欧美精品| 国产日本欧洲亚洲| 成人av资源网站| 久久精品一区蜜桃臀影院| 国产精品影视在线观看| 国产精品久久久久久久第一福利| 色综合久久天天综合网| 亚洲国产一区二区三区| 91精品国产入口| 国产风韵犹存在线视精品| 国产日产欧美一区二区视频| 一本久久精品一区二区| 亚洲一卡二卡三卡四卡| 欧美一区二区成人| 国内久久精品视频| 成人免费在线观看入口| 欧美精品v国产精品v日韩精品| 毛片不卡一区二区| 中文字幕在线不卡一区| 欧美熟乱第一页| 国产高清精品网站| 亚洲国产欧美日韩另类综合 |