summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/lib/buflib.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/plugins/lib/buflib.h b/apps/plugins/lib/buflib.h
index d4ef4af9ff..47ad57f526 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);
51 51
52 52
53 53
54/* always_inline is due to this not getting inlined when not optimizing, which 54static inline void* buflib_get_data(struct buflib_context *context, int handle)
55 * leads to an unresolved reference since it doesn't exist as a non-inline
56 * function
57 */
58extern inline __attribute__((always_inline))
59void* buflib_get_data(struct buflib_context *context, int handle)
60{ 55{
61 return (void*)(context->handle_table[-handle].ptr); 56 return (void*)(context->handle_table[-handle].ptr);
62} 57}