kehuadong

上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页

2024年7月23日

[十万个为什么] [lua] [sproto]

摘要: 1. 类型/协议定义 转 lua_table 2. lua_table 转 { type = {}, proto = {} } 阅读全文

posted @ 2024-07-23 00:00 kehuadong 阅读(54) 评论(0) 推荐(0)

2024年7月22日

[十万个为什么] [lua] 打印table

摘要: local function print_r(t) local print_r_cache = {} local function sub_print_r(t, indent) if (print_r_cache[tostring(t)]) then print(indent .. "*" .. t 阅读全文

posted @ 2024-07-22 18:21 kehuadong 阅读(27) 评论(0) 推荐(0)

2024年7月21日

[十万个为什么] [lua] [lpeg]

摘要: LPeg - 解析 Lua 的表达式语法 (puc-rio.br) 阅读全文

posted @ 2024-07-21 16:39 kehuadong 阅读(9) 评论(0) 推荐(0)

[十万个为什么] ubuntu下32位lua

摘要: 编译和链接选项-m32 apt install gcc-mutllib apt install lib32readline-dev 阅读全文

posted @ 2024-07-21 16:05 kehuadong 阅读(10) 评论(0) 推荐(0)

2024年7月16日

[十万个为什么] 添加lua交互

摘要: #include "util_lua.h" // 调试 // static int traceback(lua_State* L) { const char* msg = lua_tostring(L, 1); if (msg == NULL) { if (luaL_callmeta(L, 1, " 阅读全文

posted @ 2024-07-16 15:28 kehuadong 阅读(20) 评论(0) 推荐(0)

2024年7月7日

[十万个为什么] ppm图片转png图片

摘要: #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" str 阅读全文

posted @ 2024-07-07 12:16 kehuadong 阅读(56) 评论(0) 推荐(0)

2024年7月5日

[十万个为什么][lua] luaL_setfuncs 添加cclouse到table的过程

摘要: 注意: 是 luaL_setfuncs添加cclouse才有复制upval 如果只是lua_pushcclosure, 会吃掉upval, 然后f放在吃掉upval之后的top 阅读全文

posted @ 2024-07-05 09:29 kehuadong 阅读(21) 评论(0) 推荐(0)

2024年7月4日

[十万个为什么] mingw头文件路径

摘要: MinGW中的头文件路径_mingwin32编译指定头文件-CSDN博客 阅读全文

posted @ 2024-07-04 20:35 kehuadong 阅读(20) 评论(0) 推荐(0)

[十万个为什么] vim练习

摘要: IDEA + Vim,竟可以这么牛逼!!_vim_模式_Idea (sohu.com) 阅读全文

posted @ 2024-07-04 19:54 kehuadong 阅读(15) 评论(0) 推荐(0)

2024年7月3日

[十万个为什么] 如何做一个目录网页

摘要: 如何做一个左侧目录,右侧内容的网页 <html> <head> <style> #dir { float: left; width: 200px; border: solid 1px #ccc; } #content { width: 800px; border: solid 1px #0c0; } 阅读全文

posted @ 2024-07-03 20:19 kehuadong 阅读(32) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页

导航