This PR updates the exception-less error handling by (i) having a static TLS l_error in the scope of int l_err() function, and (ii) making this function inline which ensures that there will be only one definition of the function in a project. Ultimately, instead of having one l_err per object file, this PR enables having one l_err for an entire project.
This PR updates the exception-less error handling by (i) having a static TLS
l_error
in the scope ofint l_err()
function, and (ii) making this functioninline
which ensures that there will be only one definition of the function in a project. Ultimately, instead of having onel_err
per object file, this PR enables having onel_err
for an entire project.