mirror of https://github.com/KLayout/klayout.git
Updated documentation
This commit is contained in:
parent
87bc1a60e1
commit
83913f07bd
|
|
@ -564,6 +564,21 @@ Class<lym::Macro> decl_Macro ("lay", "Macro",
|
|||
"in and out of the script using macro attributes (see \\set_attribute and "
|
||||
"related methods).\n"
|
||||
"\n"
|
||||
"@code\n"
|
||||
"macro = RBA::Macro::new\n"
|
||||
"macro.interpreter = RBA::Macro::Ruby\n"
|
||||
"\n"
|
||||
"macro.text = <<\"END\"\n"
|
||||
" macro = RBA::Macro::current\n"
|
||||
" x = macro.get_attribute(\"x\")\n"
|
||||
" macro.set_attribute(\"y\", x + 1)\n"
|
||||
"END\n"
|
||||
"\n"
|
||||
"macro.set_attribute(\"x\", 17)\n"
|
||||
"macro.run\n"
|
||||
"macro.get_attribute(\"y\") # -> 18\n"
|
||||
"@/code\n"
|
||||
"\n"
|
||||
"This method has been introduced in version 0.30.3.\n"
|
||||
) +
|
||||
gsi::method ("set_attribute", &lym::Macro::set_attribute, gsi::arg ("name"), gsi::arg ("value"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue