Minor cleanup. Mode RUBY_INIT_STACK macro
definition to rubyhead.swg where all the backward compatability macros are kept. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9715 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
57c6fd2f39
commit
57cca3c3cb
2 changed files with 14 additions and 12 deletions
|
|
@ -96,5 +96,14 @@
|
|||
#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