This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make map behave like grep wrt indirect object slot when
[perl5.git] / perlapi.h
CommitLineData
51371543
GS
1/* !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
2 This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h,
3 perlvars.h and thrdvar.h. Any changes made here will be lost!
4*/
5
51371543
GS
6/* declare accessor functions for Perl variables */
7
c5be433b
GS
8#if defined(PERL_OBJECT) || defined (PERL_CAPI)
9
10#if defined(PERL_OBJECT)
11# undef aTHXo
12# define aTHXo pPerl
13# undef aTHXo_
14# define aTHXo_ aTHXo,
15# undef _aTHXo
16# define _aTHXo ,aTHXo
17#endif /* PERL_OBJECT */
18
51371543
GS
19START_EXTERN_C
20
21#undef PERLVAR
22#undef PERLVARA
23#undef PERLVARI
24#undef PERLVARIC
c5be433b 25#define PERLVAR(v,t) EXTERN_C t* Perl_##v##_ptr(pTHXo);
51371543 26#define PERLVARA(v,n,t) typedef t PL_##v##_t[n]; \
c5be433b 27 EXTERN_C PL_##v##_t* Perl_##v##_ptr(pTHXo);
51371543 28#define PERLVARI(v,t,i) PERLVAR(v,t)
c5be433b 29#define PERLVARIC(v,t,i) PERLVAR(v, const t)
51371543
GS
30
31#include "thrdvar.h"
32#include "intrpvar.h"
33#include "perlvars.h"
34
35#undef PERLVAR
36#undef PERLVARA
37#undef PERLVARI
38#undef PERLVARIC
39
40END_EXTERN_C
41
c5be433b 42#endif /* PERL_OBJECT || PERL_CAPI */
51371543 43