beastapi/beastutils.h Source File

beastutils.h
Go to the documentation of this file.
1 /*
2 Copyright 2014 Autodesk, Inc. All rights reserved.
3 Use of this software is subject to the terms of the Autodesk license agreement
4 provided at the time of installation or download, or which otherwise
5 accompanies this software in either electronic or hard copy form.
6 */
7 
8 
12 #ifndef BEASTUTILS_H
13 #define BEASTUTILS_H
14 
15 #include "beastapitypes.h"
16 #ifdef __cplusplus
17 extern "C" {
18 #endif // __cplusplus
19 
26 ILB_DLL_FUNCTION ILBStatus ILBErrorToString(ILBStatus error,
27  ILBStringHandle* targetString);
28 
37 ILB_DLL_FUNCTION ILBStatus ILBGetExtendErrorInformation(ILBStringHandle* targetString);
38 
39 /*
40  * Dumps the memory stats of the dll to the Debug console and puts the API
41  * in an undefined state. NEVER CALL ANY OTHER BEAST API FUNCTIONS AFTER THIS!
42  * Only works on debug builds, this means that it CAN only be used
43  * internally for now.
44  * @returns ILB_ST_SUCCESS if there are no leaks or it's called running
45  * from a Release build
46  * @todo Should we hide this function?
47  */
48 ILB_DLL_FUNCTION ILBStatus ILBDumpMemoryStats();
49 
50 
51 #ifdef __cplusplus
52 }
53 #endif // __cplusplus
54 
55 
56 #endif // BEASTUTILS_H
ILBStatus ILBGetExtendErrorInformation(ILBStringHandle *targetString)
Returns the last error that happened in this thread.
This header is the base for getting platform consistent types for the Beast API.
ILBStatus ILBErrorToString(ILBStatus error, ILBStringHandle *targetString)
Converts an error code into a string for human readable error reporting.
ILBStatus
Status codes for Beast API calls.
Definition: beastapitypes.h:153
Handle for Beast strings Intentionally hidden implementation.
Definition: beastapitypes.h:471