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

Function SetUserField

engine/crash/src/crash.cpp:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 Result SetUserField(uint32_t index, const char *value)
122 {
123 if (index < AppState::USERDATA_SLOTS)
124 {
125 dmStrlCpy(g_AppState.m_UserData[index], value, sizeof(g_AppState.m_UserData[index]));
126 return RESULT_OK;
127 }
128
129 return RESULT_INVALID_PARAM;
130 }
131
132 static HDump LoadDumpV2(AppState* state, FILE* f)
133 {

Callers 1

Crash_SetUserFieldFunction · 0.70

Calls 1

dmStrlCpyFunction · 0.85

Tested by

no test coverage detected