We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1757c30 commit 01b50a6Copy full SHA for 01b50a6
1 file changed
section4/luajit.cpp
@@ -67,14 +67,24 @@ void case1()
67
68
cout << path << endl;
69
cout << cpath << endl;
70
+}
71
+
72
+void case2()
73
+{
74
+ MyLuaState L;
75
76
+ int status;
77
78
+ status = luaL_dostring(L, R"(print('hello\n');)");
79
+ status = luaL_dofile(L, "./embedded.lua");
80
- auto status = luaL_dofile(L, "./embedded.lua");
81
//L.dofile("./embedded.lua");
82
}
83
84
int main()
85
{
86
case1();
87
+ case2();
88
89
cout << "luajit demo" << endl;
90
0 commit comments