Skip to content

Commit

Permalink
fix : supress useless debug file
Browse files Browse the repository at this point in the history
  • Loading branch information
KouOuchi committed Oct 25, 2022
1 parent a1277d2 commit 85a150b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/include/og/core/session.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class session
void object_to_recursively(session_object_ptr _obj,
list<session_object_ptr>& _objs, list<session_relation_ptr>& _rels);

#ifndef OG_LOG_STDERR
#ifdef OG_LOG_STDERR
bool console_;
#endif
};
Expand Down
8 changes: 4 additions & 4 deletions core/src/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include <soci/sqlite3/soci-sqlite3.h>

#ifndef OG_LOG_STDERR
#ifdef OG_LOG_STDERR
#include<ConsoleApi.h>
#include<Windows.h>
#include<iostream>
Expand All @@ -41,7 +41,7 @@ namespace fs = boost::filesystem;
session::session(void) :
soci_session_(new soci::session()),
schema_(new schema())
#ifndef OG_LOG_STDERR
#ifdef OG_LOG_STDERR
, console_(false)
#endif
{
Expand Down Expand Up @@ -115,7 +115,7 @@ void session::initialize_sqlite_sequence(string _tbl)

void session::open(string _connection_string)
{
#ifndef OG_LOG_STDERR
#ifdef OG_LOG_STDERR
char* env_value;
size_t len;
errno_t err = _dupenv_s(&env_value, &len, "OG_OUTPUT");
Expand Down Expand Up @@ -164,7 +164,7 @@ void session::close()
{
soci_session_->close();

#ifndef OG_LOG_STDERR
#ifdef OG_LOG_STDERR
if (console_)
{
FreeConsole();
Expand Down
2 changes: 1 addition & 1 deletion etc/Script/og_setup.iss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define MyAppSetupName 'ObjectGenoise'
#define MyAppVersion '0.90'
#define MyAppVersion '0.92'

[Setup]
AppId=ObjectGenoise
Expand Down

0 comments on commit 85a150b

Please sign in to comment.