mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2025-01-17 21:32:23 +00:00
mark unit explicitly
This commit is contained in:
parent
71041e8f0d
commit
f6fb9546c7
@ -27,5 +27,4 @@ lazy val demo =
|
||||
.withResolver("rufio")
|
||||
|
||||
lazy val playground =
|
||||
module("playground")
|
||||
.withCats
|
||||
module("playground").withCats
|
||||
|
@ -14,7 +14,7 @@ trait AsmDocSyntax:
|
||||
ctx
|
||||
.push(asmCtx.toFragment)
|
||||
|
||||
def group[A](s: String)(f: DefinitionGroupContext => A)(using ctx: AsmDocumentContext): Unit =
|
||||
def group(s: String)(f: DefinitionGroupContext => Unit)(using ctx: AsmDocumentContext): Unit =
|
||||
val g: DefinitionGroupContext =
|
||||
new DefinitionGroupContext
|
||||
|
||||
|
@ -11,11 +11,6 @@ trait DefinitionGroupSyntax:
|
||||
|
||||
definition
|
||||
|
||||
def constant(name: String, x: Int)(using ctx: DefinitionGroupContext): Definition[Int] =
|
||||
val definition =
|
||||
Definition(name, x)
|
||||
|
||||
def constant(name: String, x: Int)(using ctx: DefinitionGroupContext): Unit =
|
||||
ctx
|
||||
.push(Definition(name, x))
|
||||
|
||||
definition
|
||||
|
@ -10,7 +10,8 @@ class DslSpec extends AnyFlatSpec with should.Matchers:
|
||||
val doc =
|
||||
asmDoc { implicit ctx =>
|
||||
group("constants test") { implicit g =>
|
||||
(constant("margin", 16), constant("secret", 42))
|
||||
constant("margin", 16)
|
||||
constant("secret", 42)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user