摘要: lua调用CPP函数 普通参数 int CTest(lua_State* lua) { size_t len; //获取字符串参数 const char* str= lua_tolstring(lua, 1, &len); printf("str=%s len=%d\n",str,len); //获 阅读全文
posted @ 2023-11-10 16:42 几个Ak 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 类型 nil 空 ​ boolean 只有false和nil是否,其他都是true ​ number对应c的double,新版有64位的整形 tonumber("100");转为number ​ string tostring(100); [[]]多行字符串赋值[[<html></html>]] . 阅读全文
posted @ 2023-11-10 16:11 几个Ak 阅读(1) 评论(0) 推荐(0) 编辑