广州大彩串口屏论坛_大彩开发者交流论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 4101|回复: 3

Magic numbers in lua

[复制链接]

19

主题

52

帖子

261

积分

中级会员

Rank: 3Rank: 3

积分
261
发表于 2022-7-15 05:11:14 | 显示全部楼层 |阅读模式
I read that "C #define" not exist in Lua. I qonder to know what is your method.

stackoverflow.com/questions/12368623/is-there-any-keyword-like-const-or-anything-else-which-does-the-same-job-with-it
回复

使用道具 举报

2

主题

1253

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
12540
发表于 2022-7-15 08:33:11 | 显示全部楼层
https://www.runoob.com/lua/lua-tutorial.html

You can learn lua language here
Easy doesn't enter into Grown-up life
成年人的生活里面没有“容易”二字
回复

使用道具 举报

2

主题

1253

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
12540
发表于 2022-7-15 08:34:47 | 显示全部楼层
http://doc.gz-dc.com/LUA/000_lua%20api.html

This is our encapsulated function, you can directly call the corresponding statement in the lua script
Easy doesn't enter into Grown-up life
成年人的生活里面没有“容易”二字
回复

使用道具 举报

19

主题

52

帖子

261

积分

中级会员

Rank: 3Rank: 3

积分
261
 楼主| 发表于 2022-7-17 18:26:27 | 显示全部楼层
Thanks for link to runoob- is essential.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|广州大彩串口屏论坛_大彩开发者交流论坛

GMT+8, 2024-4-25 05:00 , Processed in 0.045271 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表