There is value in a simple integer error code return from public C APIs, but it would be nice to have an easy way to get the full statement that forced the return, assert-style. INVALID_VALUE is not as helpful as it could be.
-
-
1) log_error() only takes in a string, not an arbitrary type right? 2) By "turning it off" in release mode, do you define it to do nothing and let the optimizer handle that? Or is there some # command?
-
A string and some optionally-provided flags and extra information. You could either have your log callback be empty, or define out the calls to log assert-style.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.