<?php
MACRO('TE','throw new Excpeption();');

function test($var) {
   if ($var < 0) {
      TE
   }
}



On Wed, Dec 22, 2010 at 3:11 PM, Mathias Grimm <mathiasgr...@gmail.com>wrote:

> I want to request a C/C++ feature that i think is good.
>
> MACRO
>
> <?php
> MACRO('PF','private function _');
> MACRO('SCOPE_CLASS','class MyProject_');
>
> class UseMacro
> {
>     PF preSave($object)
>     {
>        //...
>     }
>
> }
>
> SCOPE_CLASS Internal
> {
>
> }
>
> I don know if there is a RFC for this feature.
>

Reply via email to