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

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

?? lauxlib.c

?? 這個是一個嵌入式腳本支持引擎, 體積十分小巧
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*** $Id: lauxlib.c,v 1.159.1.3 2008/01/21 13:20:51 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", 1);    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一区二区三区免费野_久草精品视频
欧美久久一二区| 久久久久国产一区二区三区四区| 一个色妞综合视频在线观看| 99视频在线精品| 国产精品天美传媒| 成人在线视频一区二区| 中文字幕欧美激情一区| 丁香六月综合激情| 中文字幕一区二区三区视频| 成人精品鲁一区一区二区| 国产欧美日韩不卡| 成人在线一区二区三区| 中文幕一区二区三区久久蜜桃| 国产老女人精品毛片久久| 国产亚洲女人久久久久毛片| 国产福利一区在线| 国产精品久久久久一区二区三区| www.av亚洲| 亚洲男女一区二区三区| 欧美色精品天天在线观看视频| 亚洲午夜av在线| 91精品一区二区三区久久久久久 | 欧美在线观看18| 亚洲一区二区三区中文字幕| 欧美怡红院视频| 日韩经典中文字幕一区| 日韩欧美综合在线| 国产在线播放一区| 国产精品人妖ts系列视频| 色综合一个色综合亚洲| 亚洲gay无套男同| 日韩欧美你懂的| 国产乱子伦一区二区三区国色天香 | 国产成人一区在线| 国产精品理论在线观看| 在线免费一区三区| 蜜桃久久精品一区二区| 久久久www成人免费无遮挡大片| www.色精品| 亚洲电影一区二区三区| 日韩欧美一二三区| 国产99精品视频| 一区二区视频免费在线观看| 欧美一区二区精美| 国产成人欧美日韩在线电影| 亚洲欧洲色图综合| 欧美日韩成人综合在线一区二区| 麻豆久久久久久久| 国产精品传媒入口麻豆| 欧美日韩中文字幕一区二区| 精品一区二区影视| 自拍偷拍亚洲激情| 欧美猛男超大videosgay| 国产精品综合网| 亚洲日本中文字幕区| 欧美一区日本一区韩国一区| 国产精品乡下勾搭老头1| 亚洲美腿欧美偷拍| 精品免费视频.| 日本韩国一区二区| 日本亚洲一区二区| 国产精品丝袜在线| 欧美日韩不卡视频| 国产不卡免费视频| 日日夜夜精品视频天天综合网| 国产人妖乱国产精品人妖| 91国产免费看| 国内精品久久久久影院薰衣草| 亚洲免费高清视频在线| 日韩欧美国产午夜精品| 色美美综合视频| 国内外成人在线| 一区二区三区精密机械公司| 精品99久久久久久| 日本高清视频一区二区| 国内精品免费在线观看| 亚洲一卡二卡三卡四卡五卡| 欧美精品一区二区久久久| 一本到高清视频免费精品| 久久66热偷产精品| 亚洲一区在线电影| 国产亚洲欧美一级| 欧美日韩在线播| 成人福利视频网站| 奇米在线7777在线精品| 亚洲欧美在线视频| 日韩欧美一二三区| 欧美性做爰猛烈叫床潮| 大桥未久av一区二区三区中文| 蜜桃在线一区二区三区| 亚洲色图都市小说| 国产亚洲福利社区一区| 欧美剧在线免费观看网站 | 3d动漫精品啪啪一区二区竹菊 | 国产成人丝袜美腿| 蜜臀av性久久久久蜜臀av麻豆| 亚洲黄色小说网站| 国产精品毛片大码女人| 精品久久久久久久久久久院品网| 在线观看日韩高清av| 波多野结衣中文一区| 国产一区二区在线电影| 日韩和欧美的一区| 亚洲国产日日夜夜| 亚洲私人影院在线观看| 欧美激情一区二区在线| 精品国产sm最大网站| 91精品国产综合久久久久| 色94色欧美sute亚洲线路一ni| eeuss国产一区二区三区| 国产美女av一区二区三区| 蜜臀91精品一区二区三区| 天天影视涩香欲综合网| 亚洲国产婷婷综合在线精品| 一区二区三区四区在线| 自拍偷拍亚洲欧美日韩| 亚洲欧美自拍偷拍| 国产精品久久久久久久久动漫| 国产女人aaa级久久久级| 久久蜜桃av一区二区天堂| 久久综合色鬼综合色| 精品三级av在线| 日韩精品一区二区三区视频在线观看 | 色香蕉成人二区免费| 99精品国产99久久久久久白柏| 菠萝蜜视频在线观看一区| 白白色亚洲国产精品| av中文字幕一区| 成人激情动漫在线观看| 懂色中文一区二区在线播放| 国产精品亚洲第一区在线暖暖韩国 | 亚洲一区二区偷拍精品| 有码一区二区三区| 亚洲黄色av一区| 亚洲国产精品自拍| 日韩av不卡在线观看| 日韩—二三区免费观看av| 日本视频中文字幕一区二区三区| 人禽交欧美网站| 捆绑变态av一区二区三区| 精品亚洲免费视频| 国产不卡视频一区| 99热国产精品| 在线看国产一区二区| 欧美剧情片在线观看| 日韩欧美一区二区视频| 久久青草欧美一区二区三区| 国产午夜精品福利| 成人欧美一区二区三区在线播放| 136国产福利精品导航| 依依成人精品视频| 亚洲成国产人片在线观看| 日本成人在线不卡视频| 国产在线视频一区二区三区| 国产成人自拍网| 91蝌蚪porny九色| 欧美日韩综合在线免费观看| 日韩欧美色电影| 中文字幕乱码久久午夜不卡| 亚洲乱码精品一二三四区日韩在线| 亚洲国产三级在线| 久久91精品久久久久久秒播| 国产·精品毛片| 欧美在线高清视频| 精品久久久久久久久久久久久久久| 久久久久99精品国产片| 亚洲日本免费电影| 三级欧美在线一区| 国产成人午夜高潮毛片| 在线亚洲一区二区| 日韩一级视频免费观看在线| 国产免费成人在线视频| 亚洲香肠在线观看| 久久国产精品一区二区| 成人网男人的天堂| 精品视频1区2区| 久久久久国产精品免费免费搜索| 亚洲欧美日韩在线| 免费高清不卡av| 91一区在线观看| 欧美一区二区日韩| 中文字幕亚洲区| 视频一区二区不卡| 波多野洁衣一区| 欧美一三区三区四区免费在线看| 国产视频911| 午夜成人在线视频| 国产成人av一区| 欧美日本精品一区二区三区| 国产亚洲女人久久久久毛片| 亚洲成人先锋电影| 岛国一区二区在线观看| 欧美一区二区视频免费观看| 日本一区二区三级电影在线观看| 亚洲成人精品一区| av在线这里只有精品| 91麻豆精品国产91久久久久久| 国产精品色呦呦| 麻豆成人综合网| 欧洲亚洲国产日韩|