fb6ffe0 Add macros to handle returning errors

Authored and Committed by simo 9 years ago
    Add macros to handle returning errors
    
    These macros prevent the chance of not setting minor_status approproiately.
    They also hook into the tracing system, so any time an error is set, then it
    can be traced to exactly what finction (and in which line) it was set.
    
        
file modified
+42 -53
file modified
+56 -43
file modified
+7 -8
file modified
+97 -77
file modified
+15 -0
file modified
+138 -159
file modified
+193 -139
file modified
+27 -44