How to detect wiringpi error?

Hi, i’m trying to control a FMRadio module from RPI by i2c.
Most of the wiringPi method says to access the global errno to check the type of error.
How can i check this variable in xojo?
I didn’t found anything in the GPIO module.