Make DynamicLib_DescribeError available to plugins per request

This commit is contained in:
UnknownShadow200 2020-05-02 17:54:52 +10:00
parent 07e95ed9e6
commit 3fdeb3ed88

View File

@ -88,7 +88,7 @@ void* DynamicLib_GetFrom(const char* filename, const char* name);
/* Outputs more detailed information about errors with the DynamicLib functions. */ /* Outputs more detailed information about errors with the DynamicLib functions. */
/* NOTE: You must call this immediately after DynamicLib_Load/DynamicLib_Get, /* NOTE: You must call this immediately after DynamicLib_Load/DynamicLib_Get,
because on some platforms, the error is a static string instead of from error code. */ because on some platforms, the error is a static string instead of from error code. */
cc_bool DynamicLib_DescribeError(cc_result res, String* dst); CC_API cc_bool DynamicLib_DescribeError(cc_result res, String* dst);
/* Allocates a block of memory, with undetermined contents. Returns NULL on allocation failure. */ /* Allocates a block of memory, with undetermined contents. Returns NULL on allocation failure. */
CC_API void* Mem_TryAlloc(cc_uint32 numElems, cc_uint32 elemsSize); CC_API void* Mem_TryAlloc(cc_uint32 numElems, cc_uint32 elemsSize);