1 /////////////////////////////////////////////////////////////////////////////
2 // Name: ext/filesys/FS.xs
3 // Purpose: XS for Wx::FileSystem and related classes
4 // Author: Mattia Barbon
7 // RCS-ID: $Id: FS.xs 2057 2007-06-18 23:03:00Z mbarbon $
8 // Copyright: (c) 2001-2002, 2004, 2006 Mattia Barbon
9 // Licence: This program is free software; you can redistribute it and/or
10 // modify it under the same terms as Perl itself
11 /////////////////////////////////////////////////////////////////////////////
13 #define PERL_NO_GET_CONTEXT
15 #include "cpp/wxapi.h"
16 #include "cpp/constants.h"
20 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
21 #include <wx/filesys.h>
23 double fs_constant( const char* name, int arg )
26 // !parser: sub { $_[0] =~ m<^\s*r\w*\(\s*(\w+)\s*\);\s*(?://(.*))?$> }
29 if( strEQ( name, #n ) ) \
32 WX_PL_CONSTANT_INIT();
43 WX_PL_CONSTANT_CLEANUP();
46 wxPlConstants fs_module( &fs_constant );
52 INIT_PLI_HELPERS( wx_pli_helpers );
54 INCLUDE: XS/FileSystem.xs
55 INCLUDE: XS/FileSystemHandler.xs
59 #if defined(__WXMSW__)
61 #define XS( name ) WXXS( name )