Re: RFC - MACRO

From: Date: Wed, 22 Dec 2010 19:55:09 +0000
Subject: Re: RFC - MACRO
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-51121@lists.php.net to get a copy of this message
I Just want a simple replace-on-the-air to avoid spend time writing more. On Wed, Dec 22, 2010 at 5:43 PM, Stas Malyshev <smalyshev@sugarcrm.com>wrote: > Hi! > > > I want to request a C/C++ feature that i think is good. >> >> MACRO >> > > You know that you could write: > <?php > #define PF private function > #define SCOPE_CLASS(x) class MyProject_ ## x > > > class UseMacro > { > PF preSave($object) > { > //... > } > > } > > SCOPE_CLASS(Internal) > { > > } > > And then run it through CPP (gcc -Mcpp -E - - < in.php > out.php) and get > all the macros processed? > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 >

« previous php.internals (#51121) next »