terefere 发表于 2022-7-15 05:11:14

Magic numbers in lua

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

If后要接end 发表于 2022-7-15 08:33:11

https://www.runoob.com/lua/lua-tutorial.html

You can learn lua language here

If后要接end 发表于 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

terefere 发表于 2022-7-17 18:26:27

Thanks for link to runoob- is essential.
页: [1]
查看完整版本: Magic numbers in lua