I embedded lua in the directory structure of my game engine and lua files, and I started to use a lot of lua scripts. I want to use “requrie” to optimize module inclusion, but I don’t Determine how
Tag: How to
How to calculate upvalues in nested Lua functions?
Use lua code blocks like this:
local a, b
function fA ()
print(a)
function fB ()
print(b)
end
end How many upvalues does fA have, 1 or 2?
You may want to use luac -l -l to read th
How to reference the field name in Firedac in Delphi
I am developing an application that runs on multiple databases, many of which have their own way to refer to reserved words as field names, such as
such as< /p>
select `key` from mytable or
How to read a fairly simple JSON file in Delphi Xe4?
I have been trying to solve this problem, it seems to take too long to do some simple things.
I have such a file:
[
{
“FirstName”: “Oleg”,
“Surname”: “Buckley”
},
{
“FirstName”: “
How to disable the Android homepage and back button from Delphi
I am writing an application for an Android tablet in Delphi XE7. I want to turn off the homepage and back button so that no one can leave the application. I found many answers, But there is no ment
How to pass the lua function to the C function and perform Lua functions multiple times?
What I want to do is create a function that will iterate some objects and call a function for each function. I am using BlitzMax, not C, but other than that , Because it has a complete Lua C functi
How to convert a C string into a RUST string and return via FFI?
I am trying to get the C string returned by the C library and convert it to a Rust string through FFI.
mylib.c
const char* hello(){
return “Hello World!”;
} main.rs
#![feature(li
How do I call the “AT command” of the GSM modem in the codeys? Not a standard Send_SMS and E.T.C
I have a gsm-modem and plc, plc sees a modem (I use *.lib and the function block “openPort”), but I don’t understand how to write “in the modem” at command”, such as “ate0”. First, in order to i
How to pack printf () into a function or macro?
This sounds a bit like an interview question, but it is actually an actual question.
I am using an embedded platform and only provide this The equivalent of these functions:
> printf(
How to read an integer group in the file in C
I have a text file, each line contains one or more integers, separated by spaces. How can I read this in C in an elegant way? If I don’t care about the line, I can use cin>>, but the important thin