Hello Guest it is February 04, 2026, 09:17:39 AM

Author Topic: Yet Another Tool Change Script  (Read 11652 times)

0 Members and 1 Guest are viewing this topic.

Re: Yet Another Tool Change Script
« Reply #10 on: February 07, 2024, 06:10:49 AM »
Ugh.

every
Code: [Select]
variable = mc.mcGetSomething(inst) call is actually a
Code: [Select]
variable, rc = mc.mcGetSomething(inst) call, where "rc" is the return code, and it should be checked to make sure it is OK or the function should barf.

That means - to do this right - I have to add an error check to every single API call.

Oi. More to follow.