paulrouget / servofocus

Experimenting with a Xamarin.Forms + Servo
5 stars 2 forks source link

For every call to Servo, make sure it returns ServoResult::Ok #9

Closed paulrouget closed 6 years ago

paulrouget commented 6 years ago

I'm sure there's a proper way in C# to check if ServoResult::Ok is returned or throw an exception otherwise.

mfkl commented 6 years ago

Which interop call are you referring to?

EDIT: All of them. Yes, OK.

mfkl commented 6 years ago

All interop calls currently do return that enum.

Question is, what should we do if it's not Ok?

paulrouget commented 6 years ago

Crash.

mfkl commented 6 years ago

Closed by b5700ba