forked from len0rd/rockbox
buflib_get_data(): static inline ensures it will be inlined
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28018 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2ac5153236
commit
17e5399d3d
1 changed files with 1 additions and 6 deletions
|
@ -51,12 +51,7 @@ void buflib_buffer_in(struct buflib_context *ctx, int size);
|
|||
|
||||
|
||||
|
||||
/* always_inline is due to this not getting inlined when not optimizing, which
|
||||
* leads to an unresolved reference since it doesn't exist as a non-inline
|
||||
* function
|
||||
*/
|
||||
extern inline __attribute__((always_inline))
|
||||
void* buflib_get_data(struct buflib_context *context, int handle)
|
||||
static inline void* buflib_get_data(struct buflib_context *context, int handle)
|
||||
{
|
||||
return (void*)(context->handle_table[-handle].ptr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue