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
a7417421
Commit
a7417421
authored
Oct 30, 2008
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
back to EXCHG macro (equivalent inline functions do not work, this is a stupid error from myself )
parent
443c6449
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
43 deletions
+0
-43
macros.h
include/macros.h
+0
-43
No files found.
include/macros.h
View file @
a7417421
...
...
@@ -54,51 +54,8 @@
/* 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
)
{
int
temp
=
a
;
a
=
b
;
b
=
temp
;
};
static
inline
void
EXCHG
(
int
*
a
,
int
*
b
)
{
int
*
temp
=
a
;
a
=
b
;
b
=
temp
;
};
static
inline
void
EXCHG
(
double
a
,
double
b
)
{
double
temp
=
a
;
a
=
b
;
b
=
temp
;
};
static
inline
void
EXCHG
(
wxPoint
a
,
wxPoint
b
)
{
wxPoint
temp
=
a
;
a
=
b
;
b
=
temp
;
};
static
inline
void
EXCHG
(
wxSize
a
,
wxSize
b
)
{
wxSize
temp
=
a
;
a
=
b
;
b
=
temp
;
};
static
inline
void
EXCHG
(
const
wxChar
*
a
,
const
wxChar
*
b
)
{
const
wxChar
*
temp
=
a
;
a
=
b
;
b
=
temp
;
};
class
Hierarchical_PIN_Sheet_Struct
;
static
inline
void
EXCHG
(
const
Hierarchical_PIN_Sheet_Struct
*
a
,
const
Hierarchical_PIN_Sheet_Struct
*
b
)
...
...
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