Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
openjazz
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
openjazz
Commits
1938b689
Commit
1938b689
authored
Mar 06, 2010
by
alistert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made detailed logging optional at compile time.
parent
ef91dd39
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
85 deletions
+90
-85
OpenJazz.h
src/OpenJazz.h
+6
-0
file.cpp
src/io/file.cpp
+2
-2
scene.cpp
src/scene.cpp
+82
-83
No files found.
src/OpenJazz.h
View file @
1938b689
...
@@ -177,5 +177,11 @@ EXTERN void log (const char *message, const char *detail);
...
@@ -177,5 +177,11 @@ EXTERN void log (const char *message, const char *detail);
EXTERN
void
log
(
const
char
*
message
,
int
number
);
EXTERN
void
log
(
const
char
*
message
,
int
number
);
EXTERN
void
logError
(
const
char
*
message
,
const
char
*
detail
);
EXTERN
void
logError
(
const
char
*
message
,
const
char
*
detail
);
#ifdef VERBOSE
#define LOG(x, y) log(x, y)
#else
#define LOG(x, y) x; y
#endif
#endif
#endif
src/io/file.cpp
View file @
1938b689
...
@@ -51,7 +51,7 @@ File::~File () {
...
@@ -51,7 +51,7 @@ File::~File () {
fclose
(
f
);
fclose
(
f
);
//log
("Closed file", filePath);
LOG
(
"Closed file"
,
filePath
);
delete
[]
filePath
;
delete
[]
filePath
;
...
@@ -70,7 +70,7 @@ bool File::open (const char * path, const char * name, bool write) {
...
@@ -70,7 +70,7 @@ bool File::open (const char * path, const char * name, bool write) {
if
(
f
)
{
if
(
f
)
{
//log
("Opened file", filePath);
LOG
(
"Opened file"
,
filePath
);
return
true
;
return
true
;
...
...
src/scene.cpp
View file @
1938b689
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment