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
443c6449
Commit
443c6449
authored
Oct 30, 2008
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
return to EXCHG macro (some equivalent inline functions do not work )
parent
78bbe949
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
macros.h
include/macros.h
+8
-0
No files found.
include/macros.h
View file @
443c6449
...
@@ -53,6 +53,11 @@
...
@@ -53,6 +53,11 @@
/****************************************/
/****************************************/
/* inline functions to exchange 2 items */
/* inline functions to exchange 2 items */
/****************************************/
/****************************************/
#if 1
#define EXCHG( a, b ) { typeof(a) __temp__ = (a); (a) = (b); (b) = __temp__; }
#else
static
inline
void
EXCHG
(
int
a
,
int
b
)
static
inline
void
EXCHG
(
int
a
,
int
b
)
{
{
int
temp
=
a
;
int
temp
=
a
;
...
@@ -126,6 +131,9 @@ static inline void EXCHG( const D_PAD* a, const D_PAD* b )
...
@@ -126,6 +131,9 @@ static inline void EXCHG( const D_PAD* a, const D_PAD* b )
a
=
b
;
a
=
b
;
b
=
temp
;
b
=
temp
;
};
};
#endif
/*****************************************************/
/*****************************************************/
/* inline functions to insert menuitems with a icon: */
/* inline functions to insert menuitems with a icon: */
/*****************************************************/
/*****************************************************/
...
...
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