diff options
Diffstat (limited to 'templates/wrapfuncs.c')
-rw-r--r-- | templates/wrapfuncs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/wrapfuncs.c b/templates/wrapfuncs.c index 0a90efd..f6d4f0b 100644 --- a/templates/wrapfuncs.c +++ b/templates/wrapfuncs.c @@ -13,7 +13,9 @@ * script if you want to modify this. */ @body -static ${type} (*real_${name})(${decl_args}) = NULL; +static ${type} (*real_${name})(${decl_args}) = ${real_init}; + +${maybe_skip} ${type} ${name}(${decl_args}) { @@ -69,8 +71,9 @@ wrap_${name}(${wrap_args}) { ${maybe_variadic_decl} ${maybe_variadic_start} -#include "guts/${name}.c" +#include "ports/${port}/guts/${name}.c" ${rc_return} } +${end_maybe_skip} |