-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUtilities.h
More file actions
36 lines (31 loc) · 1.46 KB
/
Utilities.h
File metadata and controls
36 lines (31 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
isxSQLite is an extension for InnerSpace (http://www.lavishsoft.com).
Copyright 2011-2016 isxGames.com (http://www.isxgames.com)
Permission to use the source code in this file is granted under the
Creative Commons Attribution 3.0 Unported (CC BY 3.0) license. Visit
http://creativecommons.org/licenses/by/3.0/ for a summary of what
rights are granted under this license.
*/
//--------------------------------
// All utility functions are declared here.
//--------------------------------
#pragma once
namespace LavishScript2
{
typedef void ILS2Array;
typedef void LS2Exception;
};
// SQLite Related
extern CppSQLite3DB* OpenDatabase(std::string Name, std::string FileName, LavishScript2::LS2Exception **ppException=0);
extern int OpenTable(CppSQLite3DB *pDB, const char *name, LavishScript2::LS2Exception **ppException=0);
extern int ExecQuery(CppSQLite3DB *pDB, const char *sql, LavishScript2::LS2Exception **ppException___no_exception_for_empty_result_set=0);
extern bool CloseDatabase(const char *name, CppSQLite3DB* pDB, LavishScript2::LS2Exception **ppException=0);
extern bool ExecDML(CppSQLite3DB *pDB, const char *dml, LavishScript2::LS2Exception **ppException=0);
extern void CloseAllDatabases();
extern void FinalizeAllQueries();
extern void FinalizeAllTables();
// isxSQLite Related
extern void ProcessMainXMLSettings();
// Misc. Utility Functions
extern std::string format_arg_list(const char *fmt, va_list args);
extern std::string format(const char *fmt, ...);