diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2018-09-04 15:28:14 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-09-04 15:28:14 +0200 |
commit | 4aba2981dd47672744191bd17b39bb149f494637 (patch) | |
tree | f915c2e879f4f70d3979811a56893a59c7c66438 /lib | |
parent | cec89d835494bda07d7b27636a24544460574904 (diff) | |
download | Nim-4aba2981dd47672744191bd17b39bb149f494637.tar.gz |
Codegen fix for function pointers marked inline (#8866)
Fixes #5345 Fixes #5701
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nimbase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h index 84972fcb0..507108712 100644 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -107,6 +107,8 @@ __clang__ # define N_INLINE(rettype, name) rettype __inline name #endif +#define N_INLINE_PTR(rettype, name) rettype (*name) + #if defined(__POCC__) # define NIM_CONST /* PCC is really picky with const modifiers */ # undef _MSC_VER /* Yeah, right PCC defines _MSC_VER even if it is |