mirror of
https://github.com/fluencelabs/sqlite
synced 2025-04-24 17:02:14 +00:00
introduce the ENABLE_LOG macro
This commit is contained in:
parent
3dc83269a5
commit
584cb18795
3
Makefile
3
Makefile
@ -128,7 +128,8 @@ SQLITE_FLAGS = \
|
||||
-DSQLITE_ENABLE_OFFSET_SQL_FUNC\
|
||||
-DSQLITE_ENABLE_DESERIALIZE\
|
||||
-DSQLITE_INTROSPECTION_PRAGMAS\
|
||||
-DSQLITE_OMIT_POPEN
|
||||
-DSQLITE_OMIT_POPEN\
|
||||
-DLOG_ENABLED
|
||||
|
||||
.PHONY: default all clean
|
||||
|
||||
|
@ -3,5 +3,6 @@ services:
|
||||
sqlite3:
|
||||
build:
|
||||
context: .
|
||||
container_name: sqlite3_builder
|
||||
volumes:
|
||||
- .:/code
|
||||
|
@ -110,14 +110,20 @@ const char *invoke(char *request, int request_size) {
|
||||
if(g_isInited == 0) {
|
||||
// TODO: check the return code
|
||||
init();
|
||||
|
||||
#if LOG_ENABLED
|
||||
const char successInitMessage[] = "Sqlite has been initialized";
|
||||
log_utf8_string(successInitMessage, sizeof(successInitMessage));
|
||||
#endif
|
||||
|
||||
g_isInited = 1;
|
||||
}
|
||||
|
||||
request[request_size] = 0;
|
||||
|
||||
#if LOG_ENABLED
|
||||
log_utf8_string(request, request_size);
|
||||
#endif
|
||||
|
||||
ShellText str;
|
||||
initText(&str);
|
||||
|
Loading…
x
Reference in New Issue
Block a user