MCPcopy Create free account
hub / github.com/ZDoom/Raze / SafeGet

Method SafeGet

source/common/utility/tarray.h:325–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323 }
324
325 T SafeGet (size_t index, const T& defaultval) const
326 {
327 if (index <= Count) return Array[index];
328 else return defaultval;
329 }
330
331 // returns address of first element
332 T *Data(size_t index = 0) const

Callers 3

parseMethod · 0.80
duke_GetambientSoundFunction · 0.80
duke_GetambientDistFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected