[ CCode ( cname = "gpseq_overflow_long_add" ) ]
public bool long_add (long a, long b, out long result = null)
Performs an operation that adds a and b and returns the result, with checking whether the operation overflowed.
If the operation not overflowed, sets result to the result of the operation and returns false. If the operation overflowed, set result to the operation result wrapped around and returns true.
a |
an integer |
b |
an integer |
result |
returns the result of the arithmetic operation |
true if the operation overflowed, and false otherwise |