Corrected no_children() example.

This commit is contained in:
Garth Minette 2021-01-28 17:13:35 -08:00
parent 4f8b9fe7e8
commit 12cc40a56f
2 changed files with 5 additions and 2 deletions

View file

@ -549,7 +549,10 @@ function segs(r) =
// Arguments:
// $children = number of children the module has.
// Example:
// no_children($children);
// module foo() {
// no_children($children);
// }
// foo();
module no_children(count) {
assert($children==0, "Module no_children() does not support child modules");
assert(count==0, str("Module ",parent_module(1),"() does not support child modules"));

View file

@ -6,7 +6,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,546];
BOSL_VERSION = [2,0,547];
// Section: BOSL Library Version Functions