mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-19 16:47:14 +02:00
Various changes to the modules.
Also commited the remaining incomplete modules.
This commit is contained in:
@ -16,7 +16,7 @@ namespace SqMod {
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInteger Column::Typename(HSQUIRRELVM vm)
|
||||
{
|
||||
static SQChar name[] = _SC("SqSQLiteColumn");
|
||||
static const SQChar name[] = _SC("SqSQLiteColumn");
|
||||
sq_pushstring(vm, name, sizeof(name));
|
||||
return 1;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ namespace SqMod {
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInteger Connection::Typename(HSQUIRRELVM vm)
|
||||
{
|
||||
static SQChar name[] = _SC("SqSQLiteConnection");
|
||||
static const SQChar name[] = _SC("SqSQLiteConnection");
|
||||
sq_pushstring(vm, name, sizeof(name));
|
||||
return 1;
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ void OnSquirrelLoad()
|
||||
void OnSquirrelTerminate()
|
||||
{
|
||||
OutputMessage("Terminating: %s", SQSQLITE_NAME);
|
||||
// Release the current database (if any)
|
||||
// Release the current virtual machine, if any
|
||||
DefaultVM::Set(nullptr);
|
||||
}
|
||||
|
||||
@ -362,7 +362,6 @@ void RegisterAPI(HSQUIRRELVM vm)
|
||||
|
||||
RootTable(vm).Bind(_SC("SQLite"), sqlns);
|
||||
|
||||
|
||||
ConstTable(vm).Enum(_SC("ESQLite"), Enumeration(vm)
|
||||
.Const(_SC("ABORT"), SQLITE_ABORT)
|
||||
.Const(_SC("ABORT_ROLLBACK"), SQLITE_ABORT_ROLLBACK)
|
||||
|
@ -22,7 +22,7 @@ namespace SqMod {
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInteger Statement::Typename(HSQUIRRELVM vm)
|
||||
{
|
||||
static SQChar name[] = _SC("SqSQLiteStatement");
|
||||
static const SQChar name[] = _SC("SqSQLiteStatement");
|
||||
sq_pushstring(vm, name, sizeof(name));
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user