mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 18:32:11 +00:00
* fixes #19231; newFinalize doesn't work with ORC first make it pass tests * remove the tables dep creates a binding for finalized procs in order to handle the same symbols. It used to wrongly generat a new symbol id for the same symbol as the encountered one before * refactor and revert #14257 * de indentation * fixes tests; uses instantiated types
19 lines
251 B
Nim
19 lines
251 B
Nim
discard """
|
|
matrix: "--mm:orc"
|
|
targets: "c cpp"
|
|
"""
|
|
|
|
type
|
|
Game* = ref object
|
|
|
|
proc free*(game: Game) =
|
|
var mixNumOpened:cint = 0
|
|
for i in 0..<mixNumOpened:
|
|
mixNumOpened -= 1
|
|
|
|
proc newGame*(): Game =
|
|
new result, free
|
|
|
|
var
|
|
game*: Game
|