mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 16:36:31 +00:00
Add string messages to returned result codes to display to user
* Most of the main entry points that can fail with relevant reasons now has a way of specifying a message to return with it. This message can be displayed to the user to give more information or context about an error.
This commit is contained in:
@@ -155,6 +155,11 @@ VA_IGNORE_REST_OF_FILE
|
||||
%ignore StructuredChunkList::StructuredChunkList;
|
||||
%ignore StructuredChunkList::~StructuredChunkList;
|
||||
|
||||
// don't allow user code to create ResultDetails objects (they can't allocate the string)
|
||||
// or access the internal message, which we can't hide as ResultDetails must be POD.
|
||||
%ignore ResultDetails::ResultDetails;
|
||||
%ignore ResultDetails::internal_msg;
|
||||
|
||||
// these objects return a new copy which the python caller should own.
|
||||
%newobject SDObject::Duplicate;
|
||||
%newobject SDChunk::Duplicate;
|
||||
|
||||
Reference in New Issue
Block a user