Yuescript icon indicating copy to clipboard operation
Yuescript copied to clipboard

如何导入和使用c和c++里的类型和函数,和原生lua的步骤一样吗?

Open wu162 opened this issue 1 year ago • 2 comments

如何导入和使用c和c++里的类型和函数,和原生lua的步骤一样吗?

wu162 avatar May 13 '24 10:05 wu162

是的,向Lua环境导入C和C++的函数和对象可以看看这个项目:https://github.com/ThePhD/sol2 。Yuescript只负责帮你简化和提升编写Lua代码的体验。

pigpigyyy avatar May 13 '24 14:05 pigpigyyy

是的,向Lua环境导入C和C++的函数和对象可以看看这个项目:https://github.com/ThePhD/sol2 。Yuescript只负责帮你简化和提升编写Lua代码的体验。

感谢,了解了

wu162 avatar May 14 '24 09:05 wu162