Posts by alex • 61 points
1 post
-
6
votes1
answer234
viewsQ: How to use a Lua variable in C++?
I can’t get value from a Lua matrix to use in C++. So I take the value of the variable M: //No LUA M = 85 //No C++ L = lua_open(); luaL_loadfile(L, "teste.lua"); lua_pcall(L, 0, 0, 0); int m;…