Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
b4fef31d
Commit
b4fef31d
authored
Jan 06, 2016
by
Chris Pickett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made requested revisions for naming and spacing
parent
4731c7e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
util.h
include/flatbuffers/util.h
+12
-12
No files found.
include/flatbuffers/util.h
View file @
b4fef31d
...
...
@@ -219,19 +219,19 @@ inline void EnsureDirExists(const std::string &filepath) {
// Obtains the absolute path from any other path.
// Returns the input path if the absolute path couldn't be resolved.
inline
std
::
string
AbsolutePath
(
const
std
::
string
&
filepath
)
{
#ifdef NO_ABSOLUTE_PATH_RESOLUTION
return
filepath
;
#else
#ifdef _WIN32
char
abs_path
[
MAX_PATH
];
return
GetFullPathNameA
(
filepath
.
c_str
(),
MAX_PATH
,
abs_path
,
nullptr
)
#ifdef FLATBUFFERS_NO_ABSOLUTE_PATH_RESOLUTION
return
filepath
;
#else
char
abs_path
[
PATH_MAX
];
return
realpath
(
filepath
.
c_str
(),
abs_path
)
#endif
?
abs_path
:
filepath
;
#endif // NO_ABSOLUTE_PATH_RESOLUTION
#ifdef _WIN32
char
abs_path
[
MAX_PATH
];
return
GetFullPathNameA
(
filepath
.
c_str
(),
MAX_PATH
,
abs_path
,
nullptr
)
#else
char
abs_path
[
PATH_MAX
];
return
realpath
(
filepath
.
c_str
(),
abs_path
)
#endif
?
abs_path
:
filepath
;
#endif // NO_ABSOLUTE_PATH_RESOLUTION
}
// To and from UTF-8 unicode conversion functions
...
...
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