mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-06 03:47:09 +01:00
Implement field selection in the MySQL library.
This commit is contained in:
1 parent
a7f8584661
commit
15532298dc
4 files changed
+71
-6
No files matched your search
@@ -20,7 +20,7 @@ void Area::AddArray(const Sqrat::Array & a)
|
||||
{
|
||||
float values[2];
|
||||
|
||||
a.Foreach([this, &values, n = int(0)](HSQUIRRELVM vm) mutable -> bool {
|
||||
a.Foreach([this, &values, n = int(0)](HSQUIRRELVM vm, SQInteger i) mutable -> SQRESULT {
|
||||
// Retrieve the type of the value
|
||||
const SQObjectType type = sq_gettype(vm, -1);
|
||||
// Are we dealing with a vector?
|
||||
@@ -44,7 +44,7 @@ void Area::AddArray(const Sqrat::Array & a)
|
||||
}
|
||||
}
|
||||
// Ignore anything else
|
||||
return true;
|
||||
return SQ_OK;
|
||||
});
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
Reference in new issue
Block a user