上一页 1 2 3 4 5 6 7 ··· 47 下一页
摘要: luacurl.c文件定义处的ALL_CURL_OPT展开 /* wrap curl option with simple option type */ #define C_OPT(n, t) /* wrap curl option with string list type */ #define 阅读全文
posted @ 2025-07-06 14:07 yanghui01 阅读(19) 评论(0) 推荐(0)
摘要: 注册在curlT表下,可以看作curlT类的成员函数 static const struct luaL_reg luacurl_meths[] = { {"close", lcurl_easy_close}, {"setopt", lcurl_easy_setopt}, {"perform", lc 阅读全文
posted @ 2025-07-06 13:28 yanghui01 阅读(20) 评论(0) 推荐(0)
摘要: 注册在curl表下,可以看作curl类的static函数 static const struct luaL_reg luacurl_funcs[] = { {"new", lcurl_easy_init}, {"escape", lcurl_escape}, {"unescape", lcurl_u 阅读全文
posted @ 2025-07-05 15:52 yanghui01 阅读(9) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <curl/curl.h> #include <lauxlib.h> // 回调函数,用于处理响应数据 size_t write_callback(void *contents, size_t size, size_t nmemb, char 阅读全文
posted @ 2025-07-05 08:38 yanghui01 阅读(68) 评论(0) 推荐(0)
摘要: 从入口函数开始 LUACURL_API int luaopen_luacurl (lua_State *L) { printf("luaopen_luacurl begin: %d, %s\n", lua_gettop(L), lua_typename(L, lua_type(L, -1))); / 阅读全文
posted @ 2025-07-05 08:22 yanghui01 阅读(28) 评论(0) 推荐(0)
摘要: 目的:能在lua中像下面这样方便的使用协程 public class CoTest : MonoBehaviour { void Start() { var enu = MyCo(); StartCoroutine(enu); } IEnumerator MyCo() { Debug.Log($"f 阅读全文
posted @ 2025-07-01 00:13 yanghui01 阅读(90) 评论(0) 推荐(0)
摘要: 原理 根据刘海的信息,设置好安全区域,然后把ui都相对安全区域来显示。 比如:屏幕宽高为1334x750,刘海大小为:左60,右50,上0,下40,那安全区域就是(1334-60-50)x(750-0-40),即:1224x710 如果不做安全区域适配,就会像下面这样显示(边缘的灰色代表有刘海),u 阅读全文
posted @ 2025-05-20 00:17 yanghui01 阅读(307) 评论(0) 推荐(0)
摘要: 问题 Android SDK页面不正常,无法下载sdk和android开发工具等 1, 加载不出来 2, 加载出来但有错误图标 3, 加载出来全是错误图标 原因 dl.google.com这个域名无法解析到ip 解决办法 在host文件中(路径:C:\Windows\System32\drivers 阅读全文
posted @ 2025-05-10 00:07 yanghui01 阅读(655) 评论(1) 推荐(1)
摘要: 这边将导出项目在最新的Android Studio(Meerkat | 2024.3.1)下编译,由于Unity2019导出的项目配置比较老,所以需要对gradle配置做相关调整。 1、导出 菜单 -> File -> Build Settings 选择导出文件夹,导出成功后 2、用Android 阅读全文
posted @ 2025-05-07 23:13 yanghui01 阅读(208) 评论(0) 推荐(0)
摘要: LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname, const luaL_Reg *l, int nup); libname不为NULL, nup>0时 a) libname不为NULL, 则创建一个table(lib 阅读全文
posted @ 2025-03-12 23:12 yanghui01 阅读(130) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 47 下一页