[ClavaLaraApi] Adds Logger.appendLongLong()
@@ -4,6 +4,11 @@ import lara.util.PrintOnce;
import clava.Clava;
+// Adds C/C++ specific types
+Logger.prototype.Type.LONGLONG = 100;
+
+Logger.prototype.printfFormat[Logger.prototype.Type.LONGLONG] = "%lld";
+
/**
* If enabled, uses the SpecsLogger library for the C++ code.
@@ -65,6 +70,13 @@ Logger.prototype.log = function($jp, insertBefore) {
return this;
}
+/**
+ * Appends an expression that represents a long long.
+ */
+Logger.prototype.appendLongLong = function(expr) {
+ return this._append_private(expr, this.Type.LONGLONG);
+}
+
/**** PRIVATE METHODS ****/
