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
22201775
Commit
22201775
authored
Feb 07, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved PCB_VISIBLE size check to .cpp.
parent
d124cf45
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
layers_id_colors_and_visibility.h
include/layers_id_colors_and_visibility.h
+0
-12
class_board_design_settings.cpp
pcbnew/class_board_design_settings.cpp
+13
-0
No files found.
include/layers_id_colors_and_visibility.h
View file @
22201775
...
@@ -245,18 +245,6 @@ enum PCB_VISIBLE
...
@@ -245,18 +245,6 @@ enum PCB_VISIBLE
END_PCB_VISIBLE_LIST
// sentinel
END_PCB_VISIBLE_LIST
// sentinel
};
};
#ifndef NDEBUG
struct
static_check
{
static_check
()
{
// Long (the type used for saving visibility settings) is only 32 bits guaranteed,
// be sure that we do not cross the limit
assert
(
END_PCB_VISIBLE_LIST
<=
32
);
};
};
static
static_check
check
;
#endif
/**
/**
* Enum NETNAMES_VISIBLE
* Enum NETNAMES_VISIBLE
* is a set of layers specific for displaying net names.
* is a set of layers specific for displaying net names.
...
...
pcbnew/class_board_design_settings.cpp
View file @
22201775
...
@@ -243,3 +243,16 @@ void BOARD_DESIGN_SETTINGS::SetEnabledLayers( LAYER_MSK aMask )
...
@@ -243,3 +243,16 @@ void BOARD_DESIGN_SETTINGS::SetEnabledLayers( LAYER_MSK aMask )
// update m_CopperLayerCount to ensure its consistency with m_EnabledLayers
// update m_CopperLayerCount to ensure its consistency with m_EnabledLayers
m_CopperLayerCount
=
LayerMaskCountSet
(
aMask
&
ALL_CU_LAYERS
);
m_CopperLayerCount
=
LayerMaskCountSet
(
aMask
&
ALL_CU_LAYERS
);
}
}
#ifndef NDEBUG
struct
static_check
{
static_check
()
{
// Int (the type used for saving visibility settings) is only 32 bits guaranteed,
// be sure that we do not cross the limit
assert
(
END_PCB_VISIBLE_LIST
<=
32
);
};
};
static
static_check
check
;
#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