Moved Init_stack() declaration over to rubyapi to
avoid potential C++ issues. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
db1161de35
commit
801fda2b00
2 changed files with 8 additions and 9 deletions
|
|
@ -21,6 +21,14 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|||
return target;
|
||||
}
|
||||
|
||||
// For ruby1.8.4 and earlier.
|
||||
#ifndef RUBY_INIT_STACK
|
||||
extern void Init_stack(VALUE* addr);
|
||||
# define RUBY_INIT_STACK \
|
||||
VALUE variable_in_this_stack_frame; \
|
||||
Init_stack(&variable_in_this_stack_frame);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -96,14 +96,5 @@
|
|||
#endif
|
||||
|
||||
|
||||
// For ruby1.8.4 and earlier.
|
||||
#ifndef RUBY_INIT_STACK
|
||||
extern void Init_stack(VALUE* addr);
|
||||
# define RUBY_INIT_STACK \
|
||||
VALUE variable_in_this_stack_frame; \
|
||||
Init_stack(&variable_in_this_stack_frame);
|
||||
#endif
|
||||
|
||||
|
||||
/* Global module used to keep some internal SWIG stuff */
|
||||
static VALUE _mSWIG = Qnil;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue