Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
search.h
Go to the documentation of this file.
1#ifndef SEARCH_H
2#define SEARCH_H
3
4#include "dolphin/os.h"
5
6namespace JGadget {
7
11template <typename T>
12inline const T& toValueFromIndex(int idx, const T* pValue, u32 count, const T& fallback) {
13 ASSERT(pValue != NULL);
14 return (idx >= count) ? fallback : pValue[idx];
15}
16
17} // namespace JGadget
18
19#endif /* SEARCH_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
static const double T[]
Definition k_tan.c:106
Definition std-vector.cpp:14
const T & toValueFromIndex(int idx, const T *pValue, u32 count, const T &fallback)
Definition search.h:12
unsigned long u32
Definition types.h:10