在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):raycmorgan/erl-lua开源软件地址(OpenSource Url):https://github.com/raycmorgan/erl-lua开源编程语言(OpenSource Language):Erlang 53.3%开源软件介绍(OpenSource Introduction):Erl-Lua is a library for embedding Lua into Erlang. It provides a simple interface that is very similar to the Lua C API. In the future it will also include a higher level API to simplify things further. WARNING: This is definitely not fully tested. Still a bunch of work to be done. If you are careful though, it should be pretty stable (no promises though). Example:
For more examples, see the tests. There is also a simple way to run one off simple Lua code snippets:
NEW Higher Level API call (lua_state L, (atom|string) function_name, list arguments, [int num_returned]) - Call a Lua function and return the values.
The strange 4th arg is the number of values the function can return (since in Lua you can return multiple things). If the number of returned values is 1, the argument can be left off.. therefore both of the above could be rewritten:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论