I have this C++ code that needs to call a Lua function. When I get the function return values, all is well and good ("Even printing the result") but w ...
I have this C++ code that needs to call a Lua function. When I get the function return values, all is well and good ("Even printing the result") but w ...
I am creating a thread in lua c, but i want to keep it just in C, without making it a variable in the environment/etc. But when i throw away the threa ...
I am compiling a Lua script into a binary on MacOS Catalina. However, the application consuming the compiled script runs a 32-bit version of Lua an ...
So, I'm attempting to emplace_back a lua bytecode instruction into a vector, the issue is the function this is in has the type of vector, I'm trying t ...
I have a lua file, which, when opened in Notepad++ shows a mixture of English (uncorrupted), understandable text, as well as a mixture of "NULS" "ETX' ...
How to create the following C language structure using Lua c api? typedef struct _c{ int d; } obj_c; typedef struct _b{ obj_c c[4]; }obj_b; t ...
i'd like to study assembly code from lua code. for the moment , i can get byte code with command : I work on linux platform, how to compile it ? Sh ...
I'm trying to edit memory with my custom function in the luaC api but for example when i do like 3 lua_tonumber(LS, -1) it just gets mixed up? Please ...
My problem is that lua_pcall clears the stack, because i want to reuse the stack before the call again with just one change again. Is there a way to e ...
How do you include a lua-bytecode-string into a C/C++ file ? $ luac -o test -s test.lua $ cat test LuaS� xV(w@@A@$@&�printTestj Now if you cou ...
Problem Description: I have created a custom C++ function print() that is supposed to be pushed as a global onto a table to so the user can use the pr ...
I wrote a simple C plugin for Lua: The code is compiled successfully with this GCC command: In a Lua 5.3 REPL, I'm able to find and import the m ...
I have a path for a file specified as a string in my code, and I don't want to be visible after luac conversion. Is it possible obfuscate somehow the ...
Can I compile all my files to one and then execute from C. In my lua files I am using require and dofile functions. When I try to use luac for compili ...
I was trying to edit a program to make it flexible with my own but there is a problem. It is coded as LUA language and it is compiled as C. Now I am ...
I wrote the following code in the file "orgin.lua" when it crash ,it will generate the following information: In order to prevent decompilation ...
I've read from other questions on this site that luac files can be decompiled if you know the lua version. I've also read that the lua version is stor ...
Recently I have been exploring the luac 5.1 api and I was wondering if it is possible to loop through every global value in the 5.1 api, I know it is ...
I have this simple program: I put the Lua DLL in the right folder, linked the libraries, setup the include folder, and compiled. It compiled cleanl ...
I'm trying to implement a simple C++ function, which checks a syntax of Lua script. For that I'm using Lua's compiler function luaL_loadbufferx() and ...