Merge branch 'tsuna-master'
* tsuna-master: Initialize C++ arrays created by array_functions' new_foo().
This commit is contained in:
commit
54118d1d61
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@
|
|||
%{
|
||||
static TYPE *new_##NAME(int nelements) { %}
|
||||
#ifdef __cplusplus
|
||||
%{ return new TYPE[nelements]; %}
|
||||
%{ return new TYPE[nelements](); %}
|
||||
#else
|
||||
%{ return (TYPE *) calloc(nelements,sizeof(TYPE)); %}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue