summaryrefslogtreecommitdiff
path: root/scope.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-03-16 08:44:37 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-03-16 08:44:37 +0000
commitac4c12e7aee90d31d5da776601addbfd9d738a5a (patch)
tree1824760ad266d03442e71a134673c0c0837302f1 /scope.h
parenta0824163008c006b841cb7ca91d331692d4ba14a (diff)
downloadperl-ac4c12e7aee90d31d5da776601addbfd9d738a5a.tar.gz
[asperl] various changes to get asperl working under Borland
(passes all tests when built under PERL_OBJECT) p4raw-id: //depot/asperl@809
Diffstat (limited to 'scope.h')
-rw-r--r--scope.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/scope.h b/scope.h
index 0f57874ba4..cc349f0f7c 100644
--- a/scope.h
+++ b/scope.h
@@ -80,11 +80,13 @@
#ifdef PERL_OBJECT
#define CALLDESTRUCTOR this->*SSPOPDPTR
#define SAVEDESTRUCTOR(f,p) \
- save_destructor((DESTRUCTORFUNC)(f),SOFT_CAST(void*)(p))
+ save_destructor((DESTRUCTORFUNC)(FUNC_NAME_TO_PTR(f)), \
+ SOFT_CAST(void*)(p))
#else
#define CALLDESTRUCTOR *SSPOPDPTR
#define SAVEDESTRUCTOR(f,p) \
- save_destructor(SOFT_CAST(void(*)_((void*)))(f),SOFT_CAST(void*)(p))
+ save_destructor(SOFT_CAST(void(*)_((void*)))(FUNC_NAME_TO_PTR(f)), \
+ SOFT_CAST(void*)(p))
#endif
#define SAVESTACK_POS() STMT_START { \
SSCHECK(2); \