mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Corrected no_children() example.
This commit is contained in:
parent
4f8b9fe7e8
commit
12cc40a56f
2 changed files with 5 additions and 2 deletions
|
@ -549,7 +549,10 @@ function segs(r) =
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// $children = number of children the module has.
|
// $children = number of children the module has.
|
||||||
// Example:
|
// Example:
|
||||||
// no_children($children);
|
// module foo() {
|
||||||
|
// no_children($children);
|
||||||
|
// }
|
||||||
|
// foo();
|
||||||
module no_children(count) {
|
module no_children(count) {
|
||||||
assert($children==0, "Module no_children() does not support child modules");
|
assert($children==0, "Module no_children() does not support child modules");
|
||||||
assert(count==0, str("Module ",parent_module(1),"() does not support child modules"));
|
assert(count==0, str("Module ",parent_module(1),"() does not support child modules"));
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,546];
|
BOSL_VERSION = [2,0,547];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
|
Loading…
Reference in a new issue