diff options
author | Gabor Loki <loki@inf.u-szeged.hu> | 2017-02-17 12:41:01 +0100 |
---|---|---|
committer | Zoltan Herczeg <zherczeg.u-szeged@partner.samsung.com> | 2017-02-17 12:41:01 +0100 |
commit | 6739463c1ee7ce9bdd86fa09d8b3c3efe188f34f (patch) | |
tree | 0133e5a4e26bce369a5691d46bb9f55146bfbe95 /jerry-core/jmem/jmem-heap.c | |
parent | 4727202c8ee3ef6b722c9e0a1ba593faf1e5414b (diff) |
Fix the missing inline specifier if compiling with -fPIC (#1590)
JerryScript-DCO-1.0-Signed-off-by: Gabor Loki loki@inf.u-szeged.hu
Diffstat (limited to 'jerry-core/jmem/jmem-heap.c')
-rw-r--r-- | jerry-core/jmem/jmem-heap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jerry-core/jmem/jmem-heap.c b/jerry-core/jmem/jmem-heap.c index a0c75d4c..3527b65c 100644 --- a/jerry-core/jmem/jmem-heap.c +++ b/jerry-core/jmem/jmem-heap.c @@ -400,7 +400,7 @@ jmem_heap_gc_and_alloc_block (const size_t size, /**< required memory size * @return NULL, if the required memory is 0 * pointer to allocated memory block, otherwise */ -void * __attr_hot___ __attr_always_inline___ +inline void * __attr_hot___ __attr_always_inline___ jmem_heap_alloc_block (const size_t size) /**< required memory size */ { return jmem_heap_gc_and_alloc_block (size, false); @@ -416,7 +416,7 @@ jmem_heap_alloc_block (const size_t size) /**< required memory size */ * also NULL, if the allocation has failed * pointer to the allocated memory block, otherwise */ -void * __attr_hot___ __attr_always_inline___ +inline void * __attr_hot___ __attr_always_inline___ jmem_heap_alloc_block_null_on_error (const size_t size) /**< required memory size */ { return jmem_heap_gc_and_alloc_block (size, true); |