SMCWrapper icon indicating copy to clipboard operation
SMCWrapper copied to clipboard

Improve error handling

Open ghost opened this issue 11 years ago • 0 comments

At the moment is a boolean value is returned from each call to a SMCWrapper function.

Upon failure however, a simple false value doesn't provide any insight as to the reasoning behind the failure. There are often multiple potential points of failure behind an error.

Resolution;

  • Implement some form of State (simple primitive int?) in SMCWrapper
  • Either document state values or simply define a load of macros against them. (Potentially not, due to the sheer number involved in SMC.h)

ghost avatar Oct 03 '14 01:10 ghost