Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ipaaca
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Social Cognitive Systems
ipaaca
Commits
7861c74e
Commit
7861c74e
authored
9 years ago
by
Ramin Yaghoubzadeh Torky
Browse files
Options
Downloads
Patches
Plain Diff
C++: replaced remaining older logging commands
parent
1824766c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ipaacalib/cpp/src/ipaaca-cmdline-parser.cc
+1
-1
1 addition, 1 deletion
ipaacalib/cpp/src/ipaaca-cmdline-parser.cc
ipaacalib/cpp/src/ipaaca-internal.cc
+4
-4
4 additions, 4 deletions
ipaacalib/cpp/src/ipaaca-internal.cc
with
5 additions
and
5 deletions
ipaacalib/cpp/src/ipaaca-cmdline-parser.cc
+
1
−
1
View file @
7861c74e
...
...
@@ -173,7 +173,7 @@ void CommandLineParser::add_option(const std::string& optname, char shortoptn, b
CommandLineOptions
::
ptr
CommandLineParser
::
parse
(
int
argc
,
char
*
const
*
argv
)
{
#ifdef WIN32
LOG_
IPAACA_
CONSOLE
(
"IMPLEMENT ME: command line parsing for Windows. (req'd: getopt)"
)
IPAACA_
ERROR
(
"IMPLEMENT ME: command line parsing for Windows. (req'd: getopt)"
)
throw
NotImplementedError
();
#else
IPAACA_DEBUG
(
""
)
...
...
This diff is collapsed.
Click to expand it.
ipaacalib/cpp/src/ipaaca-internal.cc
+
4
−
4
View file @
7861c74e
...
...
@@ -110,10 +110,10 @@ IPAACA_EXPORT void Initializer::auto_configure_rsb()//{{{
const
char
*
plugin_path
=
getenv
(
"RSB_PLUGINS_CPP_PATH"
);
if
(
!
plugin_path
)
{
#ifdef WIN32
LOG_
IPAACA_
CONSOLE
(
"WARNING: RSB_PLUGINS_CPP_PATH not set - in Windows it has to be specified."
)
IPAACA_
WARN
(
"WARNING: RSB_PLUGINS_CPP_PATH not set - in Windows it has to be specified."
)
//throw NotImplementedError();
#else
LOG_
IPAACA_
CONSOLE
(
"RSB_PLUGINS_CPP_PATH not set; looking here and up to 7 dirs up."
)
IPAACA_
INFO
(
"RSB_PLUGINS_CPP_PATH not set; looking here and up to 7 dirs up."
)
std
::
string
pathstr
=
"./"
;
for
(
int
i
=
0
;
i
<
8
/* depth EIGHT (totally arbitrary..) */
;
i
++
)
{
std
::
string
where_str
=
pathstr
+
"deps/lib/rsb*/plugins"
;
...
...
@@ -122,7 +122,7 @@ IPAACA_EXPORT void Initializer::auto_configure_rsb()//{{{
glob
(
where
,
0
,
NULL
,
&
g
);
if
(
g
.
gl_pathc
>
0
)
{
const
char
*
found_path
=
g
.
gl_pathv
[
0
];
LOG_
IPAACA_
CONSOLE
(
"Found an RSB plugin dir which will be used automatically: "
<<
found_path
)
IPAACA_
INFO
(
"Found an RSB plugin dir which will be used automatically: "
<<
found_path
)
setenv
(
"RSB_PLUGINS_CPP_PATH"
,
found_path
,
1
);
break
;
}
// else keep going
...
...
@@ -131,7 +131,7 @@ IPAACA_EXPORT void Initializer::auto_configure_rsb()//{{{
}
#endif
}
else
{
LOG_
IPAACA_
CONSOLE
(
"RSB_PLUGINS_CPP_PATH already defined: "
<<
plugin_path
)
IPAACA_
INFO
(
"RSB_PLUGINS_CPP_PATH already defined: "
<<
plugin_path
)
}
}
//}}}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment