diff options
| author | Rafaël Carré <rafael.carre@gmail.com> | 2010-09-07 14:09:06 +0000 |
|---|---|---|
| committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-09-07 14:09:06 +0000 |
| commit | 17e5399d3dc78f70a092fe2563e4fff59241bde2 (patch) | |
| tree | c59a41da1175ee8cf0bcc1243aaa177ffaa535b9 /apps | |
| parent | 2ac5153236d966f47213374ea6c8eed5a14639d9 (diff) | |
| download | rockbox-17e5399d3dc78f70a092fe2563e4fff59241bde2.zip rockbox-17e5399d3dc78f70a092fe2563e4fff59241bde2.tar.gz rockbox-17e5399d3dc78f70a092fe2563e4fff59241bde2.tar.bz2 rockbox-17e5399d3dc78f70a092fe2563e4fff59241bde2.tar.xz | |
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
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/plugins/lib/buflib.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/plugins/lib/buflib.h b/apps/plugins/lib/buflib.h index d4ef4af..47ad57f 100644 --- a/apps/plugins/lib/buflib.h +++ b/apps/plugins/lib/buflib.h @@ -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); } |