MCPcopy Create free account
hub / github.com/defold/defold / GetResultString

Function GetResultString

engine/dlib/src/dlib/buffer.cpp:187–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185
186#define _TOSTRING(_NAME) case _NAME: return #_NAME;
187 const char* GetResultString(Result result)
188 {
189 switch(result)
190 {
191 _TOSTRING(RESULT_OK)
192 _TOSTRING(RESULT_GUARD_INVALID)
193 _TOSTRING(RESULT_ALLOCATION_ERROR)
194 _TOSTRING(RESULT_BUFFER_INVALID)
195 _TOSTRING(RESULT_BUFFER_SIZE_ERROR)
196 _TOSTRING(RESULT_STREAM_SIZE_ERROR)
197 _TOSTRING(RESULT_STREAM_MISSING)
198 _TOSTRING(RESULT_STREAM_TYPE_MISMATCH)
199 _TOSTRING(RESULT_STREAM_COUNT_MISMATCH)
200 _TOSTRING(RESULT_METADATA_INVALID)
201 _TOSTRING(RESULT_METADATA_MISSING)
202 default: return "buffer.cpp: Unknown result";
203 }
204
205 }
206
207 const char* GetValueTypeString(ValueType value)
208 {

Callers 8

PushStreamFunction · 0.85
CreateFunction · 0.85
CopyBufferFunction · 0.85
GetBytesFunction · 0.85
SetMetadataFunction · 0.85
GetMetadataFunction · 0.85
CreateBufferFunction · 0.85
SetBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected