olabusayoT commented on code in PR #1058:
URL: https://github.com/apache/daffodil/pull/1058#discussion_r1275372538
##########
daffodil-japi/src/main/scala/org/apache/daffodil/japi/Daffodil.scala:
##########
@@ -886,3 +887,18 @@ object DaffodilXMLEntityResolver {
DFDLCatalogResolver.get
def getLSResourceResolver: org.w3c.dom.ls.LSResourceResolver =
DFDLCatalogResolver.get
}
+
+/**
+ * Provides functions for assertions for API usage
+ */
+object Assertions {
+
+ /**
+ * Argument check for API functions
+ * @param testFailsIfFalse test that causes failure when false
+ * @param message message to be displayed on failure of assertion
+ */
+ def argCheck(testFailsIfFalse: Boolean, message: String): Unit = {
+ Assert.argCheck(testFailsIfFalse, message)
+ }
+}
Review Comment:
Assert.argCheck calls the macro. Should we call the macro directly? I
thought we needed a version of the call per this comment
https://github.com/apache/daffodil/pull/1058#issuecomment-1648663730
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]