This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type | |
AObj = object | |
b : BRef | |
BObj = object | |
i : int | |
ARef = ref AObj | |
BRef = ref BObj | |
proc finalize(a : ARef) = | |
echo "A has gone" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import macros | |
macro genStaticGetter(a: expr): stmt = | |
## generates a getter which returns a pointer to a method with | |
## a particular type signature. | |
## | |
## The getter has the form methodname(typ: type(param1), typ2: type(param2), ...), | |
## where methodname is the name of the method passed to this macro, and param# | |
## corresponds to the the param in position # of the method signature. # is a integer | |
## representing the position of the parameter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import macros | |
macro genStaticGetter(a: expr): stmt = | |
## generates a getter which returns a pointer to a method with | |
## a particular type signature. | |
## | |
## The getter has the form methodname(typ: type(param1), typ2: type(param2), ...), | |
## where methodname is the name of the method passed to this macro, and param# | |
## corresponds to the the param in position # of the method signature. # is a integer | |
## representing the position of the parameter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tables | |
import typetraits | |
import macros | |
proc newTemplate*(name = newEmptyNode(); params: openArray[PNimrodNode] = [newEmptyNode()]; | |
body: PNimrodNode = newStmtList()): PNimrodNode {.compileTime.} = | |
## shortcut for creating a new template | |
## | |
## The ``params`` array must start with the return type of the template, | |
## followed by a list of IdentDefs which specify the params. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import NimQml | |
import macros | |
import typeinfo | |
import strutils | |
import typetraits | |
import tables | |
static: | |
let nimFromQtVariant = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tables | |
import typetraits | |
import macros | |
import strutils | |
import parseutils | |
import sequtils | |
type QObject* = ref object of RootObj | |
name*: string | |
data*: pointer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tempest.api.compute.servers.test_create_server.ServersTestJSON.test_host_name_is_same_as_server_name[id-ac1ad47f-984b-4441-9274-c9079b7a0666] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# etc/kayobe/inventory/group_vars/compute/network-interfaces | |
provision_ctl_net_bond_slaves: | |
- "ens2f0np0" | |
- "ens2f1np1" | |
hs_bond_B_bond_slaves: | |
- "ens5f0np0" | |
- "ens5f1np1" |