MCPcopy Create free account
hub / github.com/DentonW/DevIL / ChangeObjectReference

Function ChangeObjectReference

DevIL/src-IL/src/il_utx.cpp:220–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218
219
220void ChangeObjectReference(ILint *ObjRef, ILboolean *IsImported)
221{
222 if (*ObjRef < 0) {
223 *IsImported = IL_TRUE;
224 *ObjRef = -*ObjRef - 1;
225 }
226 else if (*ObjRef > 0) {
227 *IsImported = IL_FALSE;
228 *ObjRef = *ObjRef - 1; // This is an object reference, so we have to do this conversion.
229 }
230 else {
231 *ObjRef = -1; // "NULL" pointer
232 }
233
234 return;
235}
236
237
238bool GetUtxExportTable(vector <UTXEXPORTTABLE> &ExportTable, UTXHEADER &Header)

Callers 2

GetUtxExportTableFunction · 0.70
GetUtxImportTableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected