daphnis-kau / xscript Goto Github PK
View Code? Open in Web Editor NEWBind lua/js etc to c++
License: MIT License
Bind lua/js etc to c++
License: MIT License
你好, 请问一下如何用vs code调试lua脚本?能否详细介绍一下
您好,感谢您将这么厉害的工作开源,
我在使用测试时,想使用print打印变量,但是并没有显示在控制台上,所以想向您咨询一下。
您好,这是一个很棒的项目,谢谢!
是否有机会同时使用具有不同脚本引擎的单个 C++ 类(例如 CApplication
)?
以下测试失败并出现以下错误:assert( pScript->IsVirtualTableValid(pVObj) )
at CClassInfo.cpp:296。
int main(int argc, const char * argv[])
{
if (1) {
auto scriptJs = std::unique_ptr<CScriptBase>(CreateScript<CScriptJS>("js/test.js"));
for (auto i = 0; i < 2; ++i) {
scriptJs->RunFunction(nullptr, "StartApplication", "sampler", 12345);
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
}
if (1) {
auto scriptLua = std::unique_ptr<CScriptBase>(CreateScript<CScriptLua>("lua/test.lua"));
for (auto i = 0; i < 2; ++i) {
scriptLua->RunFunction(nullptr, "StartApplication", "sampler", 12345);
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
}
return 0;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.