-
I am searching for documentation around error handling in liquid-dsp. I noticed that some create functions will exit the program on failure and many functions return status integers, but I can't find anything obvious in the documentation for interpreting or handling these. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Great question! All objects' https://github.com/jgaeddert/liquid-dsp/blob/master/include/liquid.h#L76-L126 The intent here is to provide some basic level of indication for what went wrong and support debugging, but not really emulate exception handling in C. I'd love to hear any suggestions you might have to make this better! |
Beta Was this translation helpful? Give feedback.
Great question! All objects'
create
methods will (eventually) return a NULL pointer upon error and log the particular error message. I realize that pointing to the massive header file is really not a valid answer, but the error codes are described here:https://github.com/jgaeddert/liquid-dsp/blob/master/include/liquid.h#L76-L126
The intent here is to provide some basic level of indication for what went wrong and support debugging, but not really emulate exception handling in C. I'd love to hear any suggestions you might have to make this better!