Final Platform Layer
0.9.6-beta
|
Use fplGetPlatformResult() to query the current platform result.
This is useful to check if fplPlatformInit() was already called or not. Also, this is useful to see which system failed in fplPlatformInit() .
Example:
In case something goes wrong you can always call fplGetLastError() - at any time, regardless if it is initialized or not.
This either returns an empty string indicating everything is fine or a formatted string with a valid error message.
Example:
If you just want to check if there was an error, you can call fplGetErrorCount() to use the number of errors as a condition.
Example:
Use fplGetErrorByIndex() to get a error string for the given index in range fplGetErrorCount() .
Example:
Errors will never be cleared by FPL! You have to do this yourself using fplClearErrors() .
Example: