Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
0350744a
Commit
0350744a
authored
Apr 17, 2009
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add GetChars()
parent
3339f54f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
macros.h
include/macros.h
+16
-0
No files found.
include/macros.h
View file @
0350744a
...
...
@@ -14,6 +14,22 @@
#endif
/**
* Function GetChars
* returns a pointer to the actual character data, either 8 or
* 16 bits wide, depending on how the wxWidgets library was compiled.
* Pointer
*/
const
wxChar
*
GetChars
(
wxString
s
)
{
#if wxCHECK_VERSION(2,9,0)
return
(
const
wxChar
*
)
s
.
wx_str
();
#else
return
s
.
GetData
();
#endif
}
#ifndef MIN
#define MIN( x, y ) ( (x) > (y) ? (y) : (x) )
#endif
...
...
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