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 currently working on trying to update the version of Lua used in Dungeon Crawl: Stone Soup, and I am running into issue since the luaL_openlib fu ...
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 starting to make my own package manager and am starting to develop a dependency system. The builfiles are written in lua, they look something lik ...
I am creating a application that plays music based off the functions called in a Lua script. I call it musica. The problem is that I need a function t ...
I first download lua-5.3.5 , and put the source in my working directory and compile it with so I got the liblua.a and lua binary file in ./lua-5.3 ...
Lua5.3 introduced a new c api lua_rotate: https://www.lua.org/manual/5.3/manual.html#lua_rotate Rotates the stack elements between the valid index ...
Been googling for a while, have no idea whats happening. So I have a class called luaScript which handles, lua scripts ( Surprising! I know. ), which ...
I have a c++ (legacy) application which calls some lua scripts for some functionality. Now i am writing a new c++ library which should be called fro ...
I have been searching high and low for a way to handle errors with the C API for Lua, and simply print them out in the console. Though, I'm unable to ...
I have a win32 application and this is linked with Lua files. Both Lua and C++ files have bi-directional communication and can invoke function within ...
So with the Lua C API you can save a Lua value in the registry and retrieve it later. There are different ways to do it, you can create a variable and ...
How to create Lua table from C-API like this: How to set table name? I only know how to create table and put values, but don't know how to set name ...
I need to create construction like this in Lua 5.1 C-API, not in Lua 5.2 and above Expected Result: GOOD Thanks for answers! ...
I'm currently learning how to use the Lua C API and while I've had success binding functions between C/C++ and Lua, I have a few questions: Is it ...
I have the following classes in C++ And part of the lua binding code: And I want to wrap these as userdata in Lua so I could do something like: ...
I'm trying to learn the basics of interfacing Lua with C++, but I've run into a problem. I want to call a function that returns a string, and then wor ...
I have been working on how to bind C++ classes to Lua for use in a game engine, and I have run into an interesting problem. I have been following the ...
I need a very simple c++ function that calls a lua function that returns an array of strings, and stores them as a c++ vector. The function can look s ...
How to register a C function in Lua, but not in a global context, but as a table field? ...