int bone_getlasterror()

Description
Returns the last error that occured.

Callback
None (returns immediately)

Notes
The function returns the last error number which occured.  You can use bone_geterrortext() to get the error text of the error number.  bone_getlasterror() does not keep track of errors reported by callbacks.

Example

printf("Last bone error: %d.\n", bone_getlasterror());