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

Function ResultToString

engine/liveupdate/src/liveupdate.cpp:51–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 const char* ResultToString(Result result)
52 {
53 #define DM_LU_RESULT_TO_STR(x) case RESULT_##x: return #x
54 switch (result)
55 {
56 DM_LU_RESULT_TO_STR(OK);
57 DM_LU_RESULT_TO_STR(INVALID_HEADER);
58 DM_LU_RESULT_TO_STR(MEM_ERROR);
59 DM_LU_RESULT_TO_STR(INVALID_RESOURCE);
60 DM_LU_RESULT_TO_STR(VERSION_MISMATCH);
61 DM_LU_RESULT_TO_STR(ENGINE_VERSION_MISMATCH);
62 DM_LU_RESULT_TO_STR(SIGNATURE_MISMATCH);
63 DM_LU_RESULT_TO_STR(SCHEME_MISMATCH);
64 DM_LU_RESULT_TO_STR(BUNDLED_RESOURCE_MISMATCH);
65 DM_LU_RESULT_TO_STR(FORMAT_ERROR);
66 DM_LU_RESULT_TO_STR(IO_ERROR);
67 DM_LU_RESULT_TO_STR(INVAL);
68 DM_LU_RESULT_TO_STR(NOT_INITIALIZED);
69 DM_LU_RESULT_TO_STR(UNKNOWN);
70 default: break;
71 }
72 #undef DM_LU_RESULT_TO_STR
73 return "RESULT_UNDEFINED";
74 }
75
76 struct LiveUpdateCtx
77 {

Callers 3

AddMountProcessFunction · 0.70
RemoveMountSyncFunction · 0.70
Resource_AddMountFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected